-rw-r--r-- | qt/qte232-for-qpe150-keyboard.patch | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/qt/qte232-for-qpe150-keyboard.patch b/qt/qte232-for-qpe150-keyboard.patch index 5e212e9..597703a 100644 --- a/qt/qte232-for-qpe150-keyboard.patch +++ b/qt/qte232-for-qpe150-keyboard.patch | |||
@@ -96,59 +96,50 @@ | |||
96 | } | 96 | } |
97 | } else { | 97 | } else { |
98 | #if defined(QT_QWS_CUSTOM) | 98 | #if defined(QT_QWS_CUSTOM) |
99 | @@ -647,6 +687,7 @@ | 99 | @@ -647,6 +687,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 | @@ -684,13 +725,19 @@ | 107 | @@ -684,13 +725,19 @@ |
108 | else | 108 | else |
109 | repeater->stop(); | 109 | repeater->stop(); |
110 | #endif | 110 | #endif |
111 | + | 111 | + |
112 | +/* | 112 | +/* |
113 | + Translate shift+Key_Tab to Key_Backtab | 113 | + Translate shift+Key_Tab to Key_Backtab |
114 | +*/ | 114 | +*/ |
115 | +if (( keyCode == Key_Tab ) && shift ) | 115 | +if (( keyCode == Key_Tab ) && shift ) |
116 | + keyCode = Key_Backtab; | 116 | + keyCode = Key_Backtab; |
117 | } | 117 | } |
118 | 118 | ||
119 | /* | 119 | /* |
120 | Keypad consists of extended keys 53 and 28, | 120 | Keypad consists of extended keys 53 and 28, |
121 | and non-extended keys 55 and 71 through 83. | 121 | and non-extended keys 55 and 71 through 83. |
122 | */ | 122 | */ |
123 | - if ( extended ? (code == 53 || code == 28) : | 123 | - if ( extended ? (code == 53 || code == 28) : |
124 | + if ((extended == 1) ? (code == 53 || code == 28) : | 124 | + if ((extended == 1) ? (code == 53 || code == 28) : |
125 | (code == 55 || ( code >= 71 && code <= 83 )) ) | 125 | (code == 55 || ( code >= 71 && code <= 83 )) ) |
126 | keypad = Qt::Keypad; | 126 | keypad = Qt::Keypad; |
127 | 127 | ||
128 | @@ -751,7 +798,7 @@ | ||
129 | bool bShift = shift; | ||
130 | int unicode = 0; | ||
131 | if (code < keyMSize) { | ||
132 | - if (!extended) { | ||
133 | + if (extended == 0) { | ||
134 | bool bCaps = caps ^ shift; | ||
135 | #if defined(QT_QWS_CUSTOM) | ||
136 | if (fn) { | ||
137 | @@ -790,7 +837,7 @@ | 128 | @@ -790,7 +837,7 @@ |
138 | unicode = QWSServer::keyMap()[code].shift_unicode ? QWSServer::keyMap()[code].shift_unicode : 0xffff; | 129 | unicode = QWSServer::keyMap()[code].shift_unicode ? QWSServer::keyMap()[code].shift_unicode : 0xffff; |
139 | else | 130 | else |
140 | unicode = QWSServer::keyMap()[code].unicode ? QWSServer::keyMap()[code].unicode : 0xffff; | 131 | unicode = QWSServer::keyMap()[code].unicode ? QWSServer::keyMap()[code].unicode : 0xffff; |
141 | - } else { | 132 | - } else { |
142 | + } else if (extended == 1) { | 133 | + } else if (extended == 1) { |
143 | if ( code == 53 ) | 134 | if ( code == 53 ) |
144 | unicode = '/'; | 135 | unicode = '/'; |
145 | } | 136 | } |
146 | @@ -816,7 +863,7 @@ | 137 | @@ -816,7 +863,7 @@ |
147 | prevkey = prevuni = 0; | 138 | prevkey = prevuni = 0; |
148 | } | 139 | } |
149 | } | 140 | } |
150 | - extended = false; | 141 | - extended = false; |
151 | + extended = 0; | 142 | + extended = 0; |
152 | } | 143 | } |
153 | 144 | ||
154 | 145 | ||