Merge pull request #510 from Vulcalien/hide-window

Bug Fix: hide_window keybinding ignores Shift key
This commit is contained in:
Matt Rose 2021-09-11 15:25:36 -04:00 committed by GitHub
commit 28a2b0328f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ if display_manager() == 'X11':
gi.require_version('Keybinder', '3.0') gi.require_version('Keybinder', '3.0')
from gi.repository import Keybinder from gi.repository import Keybinder
Keybinder.init() Keybinder.init()
Keybinder.set_use_cooked_accelerators(False)
except (ImportError, ValueError): except (ImportError, ValueError):
err('Unable to load Keybinder module. This means the \ err('Unable to load Keybinder module. This means the \
hide_window shortcut will be unavailable') hide_window shortcut will be unavailable')
@ -133,7 +134,7 @@ class Window(Container, Gtk.Window):
if display_manager() == 'X11': if display_manager() == 'X11':
try: try:
self.hidebound = Keybinder.bind( self.hidebound = Keybinder.bind(
self.config['keybindings']['hide_window'].replace('<Shift>',''), self.config['keybindings']['hide_window'],
self.on_hide_window) self.on_hide_window)
except (KeyError, NameError): except (KeyError, NameError):
pass pass