Fix the new_window keyboard shortcut being passed through

This commit is contained in:
Kovid Goyal 2017-09-16 11:22:58 +05:30
parent a92b3c605f
commit 3675c27268
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -174,7 +174,7 @@ class Boss:
f = getattr(self, func, None)
if f is not None:
passthrough = f()
if not passthrough:
if passthrough is not True:
return True
tab = self.active_tab
if tab is None:
@ -186,7 +186,7 @@ class Boss:
f = getattr(tab, func, getattr(window, func, None))
if f is not None:
passthrough = f()
if not passthrough:
if passthrough is not True:
return True
data = get_sent_data(
self.opts.send_text_map, key, scancode, mods, window, action