Merge pull request #725 from mattrose/724-unset-keybinding-toggle_scrollbar-prevents-right-click-menu-from-opening

Fix context menu keybinding reading.
This commit is contained in:
Matt Rose 2023-03-08 17:31:03 -05:00 committed by GitHub
commit 8ae6f93f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ class TerminalPopupMenu(object):
def get_menu_item_mask(self, maskstr):
mask = 0
if maskstr is None:
return mask
maskstr = maskstr.lower()
if maskstr.find('<Shift>'.lower()) >= 0:
mask = mask | Gdk.ModifierType.SHIFT_MASK