-rw-r--r-- | qt/qte233-for-opie091-keyboard.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/qte233-for-opie091-keyboard.patch b/qt/qte233-for-opie091-keyboard.patch index 9d76a64..c1b85b6 100644 --- a/qt/qte233-for-opie091-keyboard.patch +++ b/qt/qte233-for-opie091-keyboard.patch | |||
@@ -26,25 +26,25 @@ | |||
26 | + extended = 0; | 26 | + extended = 0; |
27 | prevuni = 0; | 27 | prevuni = 0; |
28 | prevkey = 0; | 28 | prevkey = 0; |
29 | caps = FALSE; | 29 | caps = FALSE; |
30 | @@ -561,10 +561,24 @@ | 30 | @@ -561,10 +561,24 @@ |
31 | int keyCode = Qt::Key_unknown; | 31 | int keyCode = Qt::Key_unknown; |
32 | bool release = false; | 32 | bool release = false; |
33 | int keypad = 0; | 33 | int keypad = 0; |
34 | +#if defined(QT_QWS_IPAQ) | 34 | +#if defined(QT_QWS_IPAQ) |
35 | + static int ipaq_return_pressed = false; // iPAQ Action Key has ScanCode 0x60: 0x60|0x80 = 0xe0 == extended mode 1 ! | 35 | + static int ipaq_return_pressed = false; // iPAQ Action Key has ScanCode 0x60: 0x60|0x80 = 0xe0 == extended mode 1 ! |
36 | +#endif | 36 | +#endif |
37 | + | 37 | + |
38 | #if !defined(QT_QWS_CUSTOM) | 38 | #if !defined(QT_QWS_SHARP) |
39 | - if (code == 224) { | 39 | - if (code == 224) { |
40 | + if ((code == 224) | 40 | + if ((code == 224) |
41 | +#if defined(QT_QWS_IPAQ) | 41 | +#if defined(QT_QWS_IPAQ) |
42 | + && !ipaq_return_pressed | 42 | + && !ipaq_return_pressed |
43 | +#endif | 43 | +#endif |
44 | + ) | 44 | + ) |
45 | + { | 45 | + { |
46 | // extended | 46 | // extended |
47 | -extended = true; | 47 | -extended = true; |
48 | +extended = 1; | 48 | +extended = 1; |
49 | +return; | 49 | +return; |
50 | + } | 50 | + } |
@@ -86,25 +86,25 @@ | |||
86 | + keyCode = Qt::Key_Menu; | 86 | + keyCode = Qt::Key_Menu; |
87 | + break; | 87 | + break; |
88 | +} | 88 | +} |
89 | + } else if (extended == 2) { | 89 | + } else if (extended == 2) { |
90 | +switch (code) { | 90 | +switch (code) { |
91 | +case 0x1d: | 91 | +case 0x1d: |
92 | + return; | 92 | + return; |
93 | +case 0x45: | 93 | +case 0x45: |
94 | + keyCode = Qt::Key_Pause; | 94 | + keyCode = Qt::Key_Pause; |
95 | + break; | 95 | + break; |
96 | } | 96 | } |
97 | } else { | 97 | } else { |
98 | #if defined(QT_QWS_CUSTOM) | 98 | #if defined(QT_QWS_SHARP) |
99 | @@ -650,6 +690,7 @@ | 99 | @@ -650,6 +690,7 @@ |
100 | repeatable = FALSE; | 100 | repeatable = FALSE; |
101 | break; | 101 | break; |
102 | case 0x60: | 102 | case 0x60: |
103 | + ipaq_return_pressed = !release; | 103 | + ipaq_return_pressed = !release; |
104 | keyCode = Key_Return; | 104 | keyCode = Key_Return; |
105 | break; | 105 | break; |
106 | case 0x67: | 106 | case 0x67: |
107 | @@ -687,13 +728,19 @@ | 107 | @@ -687,13 +728,19 @@ |
108 | else | 108 | else |
109 | repeater->stop(); | 109 | repeater->stop(); |
110 | #endif | 110 | #endif |