Skip to content

Commit 83fe276

Browse files
committed
Moves keyboard shortcuts back to extra_keys docs
1 parent 4d86710 commit 83fe276

File tree

4 files changed

+50
-51
lines changed

4 files changed

+50
-51
lines changed

docs/termux/customisation/extra_keys.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,51 @@
1-
hero: Adding Extra Keys on the touch keyboard
1+
hero: Various Keyboard Shortcuts for Termux and Adding Extra Keys on the touch keyboard
2+
3+
## Understanding Keys on Termux and Shortcuts
4+
You might have noticed that the keyboard at the bottom of the screen has some pretty useful keys by default!
5+
These are `ESC`, `TAB`, `CTRL`, `ALT`, `-`, `DOWN` and `UP`.
6+
7+
But you can always edit these if you want to!
8+
9+
Use of keys like `ALT`, `CTRL`, `ESC` is necessary for working with a CLI terminal.
10+
Termux touch keyboards do not include one.
11+
For that purpose Termux uses the Volume down button to emulate the `CTRL` key.
12+
For example, pressing `VOLUME DOWN+L` on a touch keyboard sends the same input
13+
as pressing Ctrl+L on a hardware keyboard.
14+
15+
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:
16+
17+
* `CTRL+A` → Move cursor to the beginning of line
18+
* `CTRL+C` → Abort (send SIGINT to) current process
19+
* `CTRL+D` → Logout of a terminal session
20+
* `CTRL+E` → Move cursor to the end of line
21+
* `CTRL+K` → Delete from cursor to the end of line
22+
* `CTRL+L` → Clear the terminal
23+
* `CTRL+Z` → Suspend (send SIGTSTP to) current process
24+
* `CTRL+ALT+C` → Open new session (only work in Hacker's Keyboard)
25+
26+
The Volume up key also serves as a special key to produce certain input:
27+
28+
* `VOLUME UP+E` → Escape key
29+
* `VOLUME UP+T` → Tab key
30+
* `VOLUME UP+1` → F1 (and Volume Up+2 → F2, etc)
31+
* `VOLUME UP+0` → F10
32+
* `VOLUME UP+B` → Alt+B, back a word when using readline
33+
* `VOLUME UP+F` → Alt+F, forward a word when using readline
34+
* `VOLUME UP+X` → Alt+X
35+
* `VOLUME UP+W` → Up arrow key
36+
* `VOLUME UP+A` → Left arrow key
37+
* `VOLUME UP+S` → Down arrow key
38+
* `VOLUME UP+D` → Right arrow key
39+
* `VOLUME UP+L` → | (the pipe character)
40+
* `VOLUME UP+H` → ~ (the tilde character)
41+
* `VOLUME UP+U` → _ (underscore)
42+
* `VOLUME UP+P` → Page Up
43+
* `VOLUME UP+N` → Page Down
44+
* `VOLUME UP+.` → Ctrl+\ (SIGQUIT)
45+
* `VOLUME UP+V` → Show the volume control
46+
* `VOLUME UP+Q` → Show extra keys view
47+
* `VOLUME UP+K` → Another variant to toggle extra keys view
48+
249

350
## Adding extra keys
451

docs/termux/customisation/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ and if it does; then just opens it
8181
![Termux Opened termux.properties File](/images/termux_opened_properties_file.jpg)
8282

8383
## Adding configurations
84-
* [Termux Shortcuts](./keyboard_shortcuts.md)
85-
* [Adding Extra Keys](./extra_keys.md)
84+
* [Termux Shortcuts](./extra_keys.md#understanding-keys-on-termux-and-shortcuts)
85+
* [Adding Extra Keys](./extra_keys.md#adding-extra-keys)
8686

8787

8888
<!-- Footnotes -->

docs/termux/customisation/keyboard_shortcuts.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

mkdocs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ nav:
2424
- Installation: termux/installation.md
2525
- Customisation:
2626
- Introduction: termux/customisation/index.md
27-
- Keyboard Shortcuts: termux/customisation/keyboard_shortcuts.md
2827
- Extra Keys: termux/customisation/extra_keys.md
2928
# - Python: termux/python.md
3029
- Help & Support: support.md

0 commit comments

Comments
 (0)