Follow Us

How to Enable Extra Keys in Termux | Enable any key Termux

While using termux when we have to use keys like control alt or up or down arrow we use Touch keyboard which comes in by default with termux app. But in that touch keyboard, we don't get arrow right and arrow left as well as other keys which we can see on a normal keyboard.


To access extra keys while using termux, a lot of uses, as well as YouTubers, install the hacker's keyboard. In my opinion, it is just a waste of storage and changing my Google keyboard with a new complicated keyboard just to use termux is too much effort for me.

If you want to use extra keys in termux you can use some commands provided by the official termux website but creating a properties file with the code provided by the termux is a little bit work. I have just combined multiple commands so now you can enable those keys just by pasting a single command.


How to Enable All Arrow Keys in Termux:

By using the below command you will be able to access all the arrow keys in the termux touch. 
Just copy and paste below command and open termux again and keys will appear on your keyboard.

mkdir $HOME/.termux/ ;echo "extra-keys = [['ESC','/','-','HOME','UP','END'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT']]" >> $HOME/.termux/termux.properties && termux-reload-settings && sleep 1 && logout

How to Enable Extra Keys in Termux | Enable any key Termux




How to Enable PAGE UP AND PAGE DOWN + Arrow Keys in Termux:

The code is exactly the as above but i have added PGUP and PGDN to add the page up and Down keys

mkdir $HOME/.termux/ ;echo "extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]" >> $HOME/.termux/termux.properties && termux-reload-settings && sleep 1 &&logout

How to Enable Extra Keys in Termux | Enable any key Termux




How to Enable Function Keys in Termux:

This command will only enable function keys by adding an extra row in the touch keyboard.
Copy and paste the below command.

mkdir $HOME/.termux/ ;echo "extra-keys = [['F1','F2','F3','F4','F5','F6','F12'],['ESC','TAB','CTRL','ALT','-','DOWN','UP']]" >> $HOME/.termux/termux.properties && termux-reload-settings && sleep 1 && logout
You can change the F1 with F7 or any function key in the command to enable that key in termux.

How to Enable Extra Keys in Termux | Enable any key Termux




How to Enable All Keys in Termux:

I don't think using this open is a great idea unless and until you are doing something which requires all of these keys together.
Copy and paste this command press Enter and done.

mkdir $HOME/.termux/ ;echo "extra-keys = [['F1','F2','F3','F4','F5','F6','F7'],['ESC','/','-','HOME','UP','END','PGUP'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]" >> $HOME/.termux/termux.properties && termux-reload-settings && sleep 1 && logout

How to Enable Extra Keys in Termux | Enable any key Termux




Conclusion:

Enabling Keys in termux takes 4-5 commands but I don't want to waste your time by separating the commands so that's why i have Created one command to do the job.if you are unable to find the key you are searching for you can check out termux-wiki for the name of your key and then you can edit the name of the key in any command to Enable your desired key.

Post a comment

8 Comments