Fix the new_window keyboard shortcut being passed through
This commit is contained in:
parent
a92b3c605f
commit
3675c27268
1 changed files with 2 additions and 2 deletions
|
|
@ -174,7 +174,7 @@ def dispatch_special_key(self, key, scancode, action, mods):
|
|||
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 @@ def dispatch_special_key(self, key, scancode, action, mods):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue