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

Feature request: Default support for CAPS LOCK keyboard shortcut #3

Open
chirag64 opened this issue Oct 18, 2018 · 5 comments
Open

Comments

@chirag64
Copy link

It would be great if you can set a default keyboard shortcut (like Caps lock) for either toggling between upper case and lower case or toggling between all the case options cyclically (but only when text is selected of course).

I've always wondered why Desktop Operating systems don't come with this behavior out of the box. This works great on Android with GBoard (highlighting text and tapping Shift-arrow icon will toggle highlighted text between lower case, upper case & title case).

Any thoughts?

@maximus136
Copy link
Owner

Yep, I can try and add keyboard shortcuts to the most-used ones like uppercase and lowercase. Need to explore this though as I am not sure how these keybindings can be implemented. Will take this up in the coming weeks, but feel free to raise a PR if you have any ideas around it.

@maximus136
Copy link
Owner

maximus136 commented Apr 27, 2019

Added a key-binding for toggling between upper and lower versions of any case, in this commit.
A single binding for cyclically changing the case is not feasible here considering the number of cases supported here.
Let me know your thoughts, or please close this issue if this works for you.

@chirag64
Copy link
Author

Just installed v1.1.1 from the marketplace. Doesn't seem to work when I press Cmd + Caps Lock.

Screen Shot 2019-04-29 at 12 14 08 PM

@maximus136
Copy link
Owner

For keybindings to work, you may have to register the commands first, by running any command using the command palette (cmd+shift+p).

@chirag64
Copy link
Author

That seems to work. But I need to press Cmd + CAPS LOCK twice for the shortcut to work. Is that expected?

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

2 participants