Can't detect shift alone
See original GitHub issueShift by itself doesn’t work.
hotkeys('shift', function() {
console.log('Shift pressed')
})
Here’s a working example: CodeSandbox
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Shift Key Not Working [SOLVED] - Driver Easy
4) Press the Shift key on your keyboard to see if it work. If your Shift key keeps not functioning, try to update...
Read more >some keyboard keys not working with shift key.
Press Windows key + I to open Settings. Select Time & Language. Under Region & language, you can check whether the Country or...
Read more >Detect Shift key is pressed without using events in Windows ...
If you want to check whether Shift alone is pressed without any other modifiers, use if (Control.ModifierKeys == Keys.Shift).
Read more >Solved: some keys in my keyboard don't work while holding shift.
Solved: Hi, 3 days ago I noticed that I can't jump while sprinting in games (sprint: Shift --- jump: Space). at first i...
Read more >Solved! - Keyboard key not working without pressing shift
If this doesn't work, you may wish to try connecting/reconnecting an external keyboard and see if it works fine.
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
@jaywcjlove how would I differentiate between
shift
andshift+command+z
then? I don’t want the shift behaviour to happen when they actually pressed other keys with it@ashconnell Modifier keys cannot be set.