diff options
Diffstat (limited to 'remoting/android')
-rw-r--r-- | remoting/android/java/src/org/chromium/chromoting/Desktop.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/remoting/android/java/src/org/chromium/chromoting/Desktop.java b/remoting/android/java/src/org/chromium/chromoting/Desktop.java index c3131a8..0eedf3a 100644 --- a/remoting/android/java/src/org/chromium/chromoting/Desktop.java +++ b/remoting/android/java/src/org/chromium/chromoting/Desktop.java @@ -63,6 +63,21 @@ public class Desktop extends Activity { case R.id.actionbar_disconnect: JniInterface.disconnectFromHost(); return true; + case R.id.actionbar_send_ctrl_alt_del: + { + int[] keys = { + KeyEvent.KEYCODE_CTRL_LEFT, + KeyEvent.KEYCODE_ALT_LEFT, + KeyEvent.KEYCODE_FORWARD_DEL, + }; + for (int key : keys) { + JniInterface.keyboardAction(key, true); + } + for (int key : keys) { + JniInterface.keyboardAction(key, false); + } + } + return true; default: return super.onOptionsItemSelected(item); } |