question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to create a hotkey for the plus character +?

See original GitHub issue

Thanks 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JohannesKlausscommented, Feb 14, 2020

@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.

1reaction
josdejongcommented, Apr 4, 2020

Thanks Johannes that is good news, I can confirm it works like a charm 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found