diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-21 18:19:11 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-21 18:19:11 +0800 |
| commit | ec7331b6388817ff79860bbbac799c3fd4f97f2f (patch) | |
| tree | fb5350947747f946fe2d7367f9cb1b027b893766 | |
| parent | c77adbb5dea1bfd4fe275c9789623a0360677c9e (diff) | |
| download | ibus-ec7331b6388817ff79860bbbac799c3fd4f97f2f.tar.gz ibus-ec7331b6388817ff79860bbbac799c3fd4f97f2f.tar.xz ibus-ec7331b6388817ff79860bbbac799c3fd4f97f2f.zip | |
Ignore NumLock mask.0.1.1.20080821
| -rw-r--r-- | daemon/bus.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/daemon/bus.py b/daemon/bus.py index 068da15..b8eee23 100644 --- a/daemon/bus.py +++ b/daemon/bus.py @@ -196,6 +196,12 @@ class IBus(ibus.Object): return False def __filter_keyboard_shortcuts(self, context, keyval, is_press, state): + state = state & (modifier.CONTROL_MASK | \ + modifier.SHIFT_MASK | \ + modifier.MOD1_MASK | \ + modifier.SUPER_MASK | \ + modifier.HYPER_MASK | \ + modifier.META_MASK) if not is_press: state = state | modifier.RELEASE_MASK |
