Bug Fix: hide_window keybinding ignores Shift key

This commit is contained in:
Vulcalien 2021-09-11 17:57:13 +02:00
parent b0cae43512
commit 8381045d5a
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')
from gi.repository import Keybinder
Keybinder.init()
Keybinder.set_use_cooked_accelerators(False)
except (ImportError, ValueError):
err('Unable to load Keybinder module. This means the \
hide_window shortcut will be unavailable')
@ -133,7 +134,7 @@ class Window(Container, Gtk.Window):
if display_manager() == 'X11':
try:
self.hidebound = Keybinder.bind(
self.config['keybindings']['hide_window'].replace('<Shift>',''),
self.config['keybindings']['hide_window'],
self.on_hide_window)
except (KeyError, NameError):
pass