Termux Shortcut Key
Termux Shortcut Key
Termux touch keyboards do not include one. For that purpose, Termux uses the Volume
down button to emulate the Ctrl key. For example, pressing <code>Volume
down+L</code> on a touch keyboard sends the same input as pressing
<code>Ctrl+L</code> on a hardware keyboard.
The result of using Ctrl in combination with a key depends on which program is
used, but for many command line tools the following shortcuts works:
The Volume up key also serves as a special key to produce certain input:
After Termux v0.66 extra keys row became configurable through file
"~/.termux/termux.properties". If this file does not exist, you will need to create
it.
The setting extra-keys-style can be used to choose which set of symbols to use for
the keys. Valid options are "default," "arrows-only", "arrows-all", "all" and
"none".
extra-keys-style = default
extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'],
['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]
The extra-keys definition itself can also be spread over multiple lines, if
desired, by
"backslash-escaping" the line feed at the end of each line, thus:
extra-keys = [ \
['ESC','|','/','HOME','UP','END','PGUP','DEL'], \
['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN','BKSP'] \
]
[[File:extra_keys_view.png|border|400px]]
== Supported keys ==
Each of the three "special keys" listed above should only be listed at most ONCE in
the extra-keys definition i.e. do NOT have more than one CTRL key. Having
more than one instance of any "special key" will result in a bug whereby those keys
do not function correctly.
A note about backslash: this character has special meaning and you shouldn't use it
directly to
define a key. Use 'BACKSLASH' instead, otherwise properly escape it -
<code>'\\\\'</code>.
== Advanced extra keys configuration ==
In Termux v0.95 extra keys configuration was extended with configurable popups.
Popups keys can be triggered by swiping up on the respective keys.
[[File:text_input_view.png|border|400px]]
= See Also =
* [[Hardware Keyboard]]
* [[Hardware Mouse]]