comparison src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java @ 157:269de016813d

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:25:48 -0700
parents 4e1e1a6ee9f9
children 23badf85abd6
comparison
equal deleted inserted replaced
156:4e1e1a6ee9f9 157:269de016813d
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, 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;