Skip to content
Permalink
Browse files

Add function keys F1 to F12 as keyboard options

  • Loading branch information...
sachac authored and fornwall committed Jun 12, 2019
1 parent 7d42b07 commit 92980824b19e233b6bda27419f29387cc3720306
Showing with 12 additions and 0 deletions.
  1. +12 −0 app/src/main/java/com/termux/app/ExtraKeysView.java
@@ -73,6 +73,18 @@ V get(K key, V defaultValue) {
put("RIGHT", KeyEvent.KEYCODE_DPAD_RIGHT);
put("DOWN", KeyEvent.KEYCODE_DPAD_DOWN);
put("ENTER", KeyEvent.KEYCODE_ENTER);
put("F1", KeyEvent.KEYCODE_F1);
put("F2", KeyEvent.KEYCODE_F2);
put("F3", KeyEvent.KEYCODE_F3);
put("F4", KeyEvent.KEYCODE_F4);
put("F5", KeyEvent.KEYCODE_F5);
put("F6", KeyEvent.KEYCODE_F6);
put("F7", KeyEvent.KEYCODE_F7);
put("F8", KeyEvent.KEYCODE_F8);
put("F9", KeyEvent.KEYCODE_F9);
put("F10", KeyEvent.KEYCODE_F10);
put("F11", KeyEvent.KEYCODE_F11);
put("F12", KeyEvent.KEYCODE_F12);
}};

static void sendKey(View view, String keyName) {

0 comments on commit 9298082

Please sign in to comment.
You can’t perform that action at this time.