How to create a hotkey for the plus character +?
See original GitHub issueThanks for sharing useHotkeys
Johannes, it works like a charm 👍
Question: how to create a hotkey for the plus key +
?
Looking at the docs of hotkeys, you have to specify a custom splitKey
:
hotkeys('ctrl-+', { splitKey: '-' }, function(e) {
console.log('you pressed ctrl and +');
});
hotkeys('+', { splitKey: '-' }, function(e){
console.log('you pressed +');
})
As far as I can see, there is currently no way to pass options via useHotkeys
to hotkeys
. Any idea?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to make the "Plus or minus " sign (±) on your keyboard
Type the following key combination : Alt + 0 1 7 7 : ± ... The technique : Keep the Alt key pressed...
Read more >keyboard shortcut to create plus sign with subscript ... - YouTube
keyboard shortcut to create plus sign with subscript two symbol in computer. 46 views 4 months ago. Engineers World Online.
Read more >Keyboard shortcuts to add language accent marks in Word ...
To type a lowercase character by using a key combination that includes the SHIFT key, hold down the CTRL+SHIFT+symbol keys simultaneously, and then...
Read more >How to set hotkey shortcut "Ctrl + Plus Sign" - Stack Overflow
Set the menu command's ShortcutKeyDisplayString property to the desired keyboard combination, such as CTRL+SHIFT+S and set the ShowShortcutKeys ...
Read more >ALT Key Shortcuts to Insert Symbols in Windows - WebNots
Alt + Key Symbol Symbol Description Symbol Category
Alt + 0128 € Euro Currency Currency
Alt + 0131 ƒ Dutch Florin Currency
Alt + 0133 …...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@josdejong thx for reporting the issue. You are right, currently there is no way to define that. I’ll work on an api asap, so you can define a split key.
Thanks Johannes that is good news, I can confirm it works like a charm 👍