comparison src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java @ 158:23badf85abd6

allow button shortcuts to see key up/down, so the monitor key can toggle properly
author Carl Byington <carl@five-ten-sg.com>
date Mon, 23 Jun 2014 18:26:46 -0700
parents 269de016813d
children b16288cbad37
comparison
equal deleted inserted replaced
157:269de016813d 158:23badf85abd6
144 144
145 // skip keys if we aren't connected yet or have been disconnected 145 // skip keys if we aren't connected yet or have been disconnected
146 if (bridge.isDisconnected()) return false; 146 if (bridge.isDisconnected()) return false;
147 147
148 // short cuts can see repeat counts and key up/down 148 // short cuts can see repeat counts and key up/down
149 if (handleShortcuts(v, event, repeat, (event.getAction() == KeyEvent.ACTION_DOWN))) return true; 149 if (handleShortcuts(v, keyCode, event, repeat, (event.getAction() == KeyEvent.ACTION_DOWN))) return true;
150 150
151 // Ignore all key-up events except for the special keys 151 // Ignore all key-up events except for the special keys
152 if (event.getAction() == KeyEvent.ACTION_UP) { 152 if (event.getAction() == KeyEvent.ACTION_UP) {
153 // There's nothing else here for virtual keyboard users. 153 // There's nothing else here for virtual keyboard users.
154 if (!hardKeyboard || hardKeyboardHidden) return false; 154 if (!hardKeyboard || hardKeyboardHidden) return false;