forked from phuang/ibus-anthy
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Super-l is a shortcut key to launch a lock screen in GNOME desktop session and now it can be sent to the engine prior to the window manager.
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# ibus-anthy - The Anthy engine for IBus | ||
# | ||
# Copyright (c) 2007-2008 Peng Huang <[email protected]> | ||
# Copyright (c) 2010-2023 Takao Fujiwara <[email protected]> | ||
# Copyright (c) 2010-2024 Takao Fujiwara <[email protected]> | ||
# Copyright (c) 2007-2018 Red Hat, Inc. | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
|
@@ -1976,7 +1976,9 @@ def __process_key_event_internal2(self, keyval, keycode, state): | |
state & hex_mod_mask == hex_mod_mask: | ||
return True | ||
|
||
if state & (IBus.ModifierType.CONTROL_MASK | IBus.ModifierType.MOD1_MASK): | ||
if state & (IBus.ModifierType.CONTROL_MASK | \ | ||
IBus.ModifierType.MOD1_MASK | \ | ||
IBus.ModifierType.MOD4_MASK): | ||
return False | ||
|
||
if (IBus.KEY_exclam <= keyval <= IBus.KEY_asciitilde or | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# ibus-anthy - The Anthy engine for IBus | ||
# | ||
# Copyright (c) 2007-2008 Peng Huang <[email protected]> | ||
# Copyright (c) 2010-2023 Takao Fujiwara <[email protected]> | ||
# Copyright (c) 2010-2024 Takao Fujiwara <[email protected]> | ||
# Copyright (c) 2007-2018 Red Hat, Inc. | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
|
@@ -1971,7 +1971,9 @@ def __process_key_event_internal2(self, keyval, keycode, state): | |
state & hex_mod_mask == hex_mod_mask: | ||
return True | ||
|
||
if state & (IBus.ModifierType.CONTROL_MASK | IBus.ModifierType.MOD1_MASK): | ||
if state & (IBus.ModifierType.CONTROL_MASK | \ | ||
IBus.ModifierType.MOD1_MASK | \ | ||
IBus.ModifierType.MOD4_MASK): | ||
return False | ||
|
||
if (IBus.KEY_exclam <= keyval <= IBus.KEY_asciitilde or | ||
|