summaryrefslogtreecommitdiffstats
path: root/mageia/dependencies/qt3/fix-key-release-event-with-imm.diff
diff options
context:
space:
mode:
Diffstat (limited to 'mageia/dependencies/qt3/fix-key-release-event-with-imm.diff')
-rw-r--r--mageia/dependencies/qt3/fix-key-release-event-with-imm.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/mageia/dependencies/qt3/fix-key-release-event-with-imm.diff b/mageia/dependencies/qt3/fix-key-release-event-with-imm.diff
new file mode 100644
index 000000000..f9192f60c
--- /dev/null
+++ b/mageia/dependencies/qt3/fix-key-release-event-with-imm.diff
@@ -0,0 +1,17 @@
+--- ./src/kernel/qapplication_x11.cpp 2006-02-17 15:45:55.000000000 -0500
++++ ./src/kernel/qapplication_x11.cpp.orig 2006-02-17 16:05:43.000000000 -0500
+@@ -5217,11 +5217,12 @@
+ } else {
+ key = (int)(long)keyDict->find( keycode );
+ if ( key )
+- if( !willRepeat ) // Take out key of dictionary only if this call.
++ if( !willRepeat && statefulTranslation ) // Take out key of dictionary only if this call.
+ keyDict->take( keycode );
+ long s = (long)textDict->find( keycode );
+ if ( s ) {
+- textDict->take( keycode );
++ if( statefulTranslation )
++ textDict->take( keycode );
+ ascii = (char)(s-256);
+ }
+ }