shotkey | lightweight hotkey daemon for X with configurable custom | Keyboard library
kandi X-RAY | shotkey Summary
kandi X-RAY | shotkey Summary
A Simple Hot Key daemon for X inspired by the suckless philosophy with configurable custom modes. ~200 LOC. ~20KB binary.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of shotkey
shotkey Key Features
shotkey Examples and Code Snippets
Community Discussions
Trending Discussions on shotkey
QUESTION
I've seen a ton of questions about TinyMCE shortcuts, but nothing quite like this.
I have a situation in which I am iterating over an object of shortcuts I want to add to TinyMCE. The shortcuts add functionality for the greater app around the editor.
For the most part, it works fine.
However, it appears that I cannot add certain combinations. For example, alt+l
and alt+left
.
Take this code:
...ANSWER
Answered 2021-May-29 at 07:06The problem is that only certain keywords can be used in a shortcut, such as the modifier names (ctrl, alt, etc...). Anything else is treated as a single key so left
in this case isn't valid and is treated as just being l
(see Shortcuts.ts). That's why alt+l
is being overridden with your alt+left
behavior.
So to fix that, you'll need to use the keycode for left
instead of a keyword. In this case that would be alt+37
. Here's a fiddle showing that working by printing to the console: https://fiddle.tiny.cloud/EEhaab.
Since you also mentioned you're trying to register other arrow keys, here's the key combinations you'd need to use:
- Left:
alt+37
- Right:
alt+39
- Up:
alt+38
- Down:
alt+40
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install shotkey
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page