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

allow key chords containing modifiers? #805

Open
lrvideckis opened this issue Nov 19, 2024 · 7 comments
Open

allow key chords containing modifiers? #805

lrvideckis opened this issue Nov 19, 2024 · 7 comments

Comments

@lrvideckis
Copy link
Contributor

lrvideckis commented Nov 19, 2024

I want a single tap/swipe to do:

  • ctrl + backspace (to delete an entire word)
  • ctrl+end (to go to the end of the input)
  • shift+end+backspace (to delete to the end of the input)
@lrvideckis
Copy link
Contributor Author

currently, you can do key chords without modifiers by doing: key0="some text", but I couldn't figure out how to do it with modifiers

@Spike-from-NH
Copy link
Contributor

The top of https://github.com/Julow/Unexpected-Keyboard/blob/master/doc/Possible-key-values.md says you can't. Other participants here have called for this ability. Complex keys at the bottom of that page presents a syntax that might be expanded to provide the ability.

@lrvideckis
Copy link
Contributor Author

gotcha. I looked at that complex key thing, and I couldn't get it to do what I want. Thx for your reply tho!

@lrvideckis
Copy link
Contributor Author

Hi, I would like to implement this! (but I might need some guidance for how)

now I looked at the Complex Keys and one option is to allow "Kind char" keys to have the ability to include modifiers. the syntax would be something like: :char modifier='ctrl',modifier='shift':q

@Julow
Copy link
Owner

Julow commented Dec 19, 2024

Sorry for the slow reply. Modifiers are not only used with character keys, for example ctrl+backspace is a useful chord that you mentioned.
We'll also need a syntax for defining a sequence of keys. I've started experimenting with that in b4f72ab, I was thinking of this syntax: :macro symbol='copy':ctrl,a,ctrl,c. This idea will require a bit of work on the KeyEventHandler side.

@Spike-from-NH
Copy link
Contributor

And it doesn't require any new syntax, as you could type macro c,t,r,l if you really wanted a key to generate a reserved word.

@Julow
Copy link
Owner

Julow commented Dec 21, 2024

@Spike-from-NH I think you are mistaken. "macro" and "," mean nothing to the app today and this discussion is about creating that.

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