From cd0c7cebccb5ffd107aff5e02cd0bde3ffc9742f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sun, 19 Jun 2011 12:36:43 +0200 Subject: [PATCH] ase: another keymouse fix: keep F1-F3 mouse-buttons from causing key events. --- ase/patches/090-keyboard-mouse.patch | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ase/patches/090-keyboard-mouse.patch b/ase/patches/090-keyboard-mouse.patch index 467f5c0..92435a7 100644 --- a/ase/patches/090-keyboard-mouse.patch +++ b/ase/patches/090-keyboard-mouse.patch @@ -192,19 +192,23 @@ Index: ase-0.8.2/data/gui.xml Index: ase-0.8.2/src/jinete/jmessage.cpp =================================================================== --- ase-0.8.2.orig/src/jinete/jmessage.cpp 2011-06-16 12:43:59.718215107 +0200 -+++ ase-0.8.2/src/jinete/jmessage.cpp 2011-06-16 12:44:02.948215109 +0200 -@@ -81,6 +81,18 @@ ++++ ase-0.8.2/src/jinete/jmessage.cpp 2011-06-19 12:35:11.813186277 +0200 +@@ -81,6 +81,22 @@ msg->key.propagate_to_children = false; msg->key.propagate_to_parent = true; -+ /* ignore arrow keys without shift, to not interfere with the -+ * keyboard-mouse */ ++ /* ignore keys used for mouse emuliation unless shift is pressed, to not ++ * interfere with the keyboard-mouse (some menus would close when ++ * receiveing key events) */ + switch (msg->key.scancode) + { + case KEY_UP: + case KEY_DOWN: + case KEY_LEFT: + case KEY_RIGHT: ++ case KEY_F1: ++ case KEY_F2: ++ case KEY_F3: + if (!(msg->any.shifts&KB_SHIFT_FLAG)) + msg->any.used = true; + }