comparison src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 19:b3d0d806cbe2

cleaner url for MS vk_ key documentation
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Jun 2014 08:48:14 -0700
parents 49fc5fba28f3
children 01d939969b10
comparison
equal deleted inserted replaced
18:49fc5fba28f3 19:b3d0d806cbe2
172 this.keyListener = keyListener; 172 this.keyListener = keyListener;
173 this.view = view; 173 this.view = view;
174 this.init = init; 174 this.init = init;
175 175
176 // setup the windows->android keymapping 176 // setup the windows->android keymapping
177 // http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx 177 // http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731
178 // http://developer.android.com/reference/android/view/KeyEvent.html 178 // http://developer.android.com/reference/android/view/KeyEvent.html
179 keymap = new HashMap<Integer,Integer>(); 179 keymap = new HashMap<Integer,Integer>();
180 keymap.put(0x08, KeyEvent.KEYCODE_BACK); // vk_back 180 keymap.put(0x08, KeyEvent.KEYCODE_BACK); // vk_back
181 keymap.put(0x09, KeyEvent.KEYCODE_TAB); // vk_tab 181 keymap.put(0x09, KeyEvent.KEYCODE_TAB); // vk_tab
182 keymap.put(0x0d, KeyEvent.KEYCODE_ENTER); // vk_return 182 keymap.put(0x0d, KeyEvent.KEYCODE_ENTER); // vk_return