Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to lock keyboard modifiers #2049

Closed
dead10ck opened this issue May 9, 2021 · 5 comments
Closed

Ability to lock keyboard modifiers #2049

dead10ck opened this issue May 9, 2021 · 5 comments

Comments

@dead10ck
Copy link

dead10ck commented May 9, 2021

Feature description

Currently, there is no way to lock a modifier so that it stays depressed. So if you have a key sequence you need to press multiple times, such as ctrl-n to go through auto complete suggestions in vim, you need to hit ctrl n, ctrl n, ctrl n, etc; it would be nice if you could do something like hit ctrl twice to lock it, similar to the shift key, then you could just hit n, n, n, etc.

@freebrowser1
Copy link

freebrowser1 commented May 9, 2021

That depends on the keyboard used. Use preferably a keyboard which has its own ctrl key built in like Multiling O keyboard or Hackers keyboard. The standard Android keyboard has no Ctrl key.
Or, even easier, use an SSH session from a computer to access Termux which is much easier than on the tiny screen. I use that from my Mac using the standard terminal app, this can also be done from Linux, and now from WIndows as well with a Powershell terminal app. In all cases use ssh -p 8022 <ip addres of your device>. The computer and the device should be in the same wifi network.

@dead10ck
Copy link
Author

dead10ck commented May 9, 2021

I'm not quite sure I understand the purpose of your comment. Are you giving reasons that this feature request shouldn't be implemented?

@freebrowser1
Copy link

No I am not, but I mentioned it as a workaround until the developers hopefully inplement tour suggestion.

@dead10ck
Copy link
Author

Yay, thanks so much @agnostic-apollo!

@agnostic-apollo
Copy link
Member

@dead10ck You are very welcome!

AdamMickiewich pushed a commit to VolyaTeam/dzida-app that referenced this issue Aug 8, 2022
The termux `extra-keys` have been moved to `termux-shared` library so that they can be imported and used by other apps for their own needs as long as they comply with GPLv3 license.

Almost everything is customizable and has no dependency on termux specific logic. Check the javadocs of files of `com.termux.shared.terminal.io.extrakeys` package for more info, specially, `ExtraKeysView`, `ExtraKeysInfo`, `ExtraKeyButton`, `TerminalExtraKeys` and  `TermuxTerminalExtraKeys`.

Moreover, you can now long hold on `CTRL`, `ALT`, `SHIFT` and `FN` to lock those control keys. They will not be released when you press another key and will only be released by pressing the respective control key again.

Closes termux#2049, Closes termux#1861
shrihankp pushed a commit to reisxd/termux-app that referenced this issue Oct 20, 2022
The termux `extra-keys` have been moved to `termux-shared` library so that they can be imported and used by other apps for their own needs as long as they comply with GPLv3 license.

Almost everything is customizable and has no dependency on termux specific logic. Check the javadocs of files of `com.termux.shared.terminal.io.extrakeys` package for more info, specially, `ExtraKeysView`, `ExtraKeysInfo`, `ExtraKeyButton`, `TerminalExtraKeys` and  `TermuxTerminalExtraKeys`.

Moreover, you can now long hold on `CTRL`, `ALT`, `SHIFT` and `FN` to lock those control keys. They will not be released when you press another key and will only be released by pressing the respective control key again.

Closes termux#2049, Closes termux#1861
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants