Comments (6)
Oh yeaaaah! Thanks for tracking that down @smridge. It's been a while since we visited this code so I had forgotten that's the behaviour.
I'll close this - given that @smridge has the solution. If it doesnt work for you @fatkhanfauzi please let me know and I'll re-open this ticket!
from hotkey.
@fatkhanfauzi I initially had this issue as well and realized I needed to remove Shift+
and replace with an uppercase letter as explained in https://github.com/github/hotkey/blob/main/src/hotkey.ts
Control+Shift+s
corrected to Control+S
solved.
from hotkey.
Hey @fatkhanfauzi thanks for the issue
What element are you adding the attribute to? Can you show us some of the code you have? Does install
get called? Do other shortcuts work but those donβt? Do shortcuts work on other elements but not this one?
from hotkey.
hi @keithamus
yeah, install gets called and it works on Command+Shift+p (mac).
just the combination of Control+Shift+(key) that doesn't work.
However, it's weird when I added those keys to the unit tests, it doesn't raise any error.
Thanks
from hotkey.
You may find the browser is overriding the script behaviour.
from hotkey.
not sure, as it doesn't work not only in chrome but also in firefox
from hotkey.
Related Issues (20)
- `eventToHotkeyString` inconsistent `shift` key behaviour on Mac HOT 11
- Add support for class-name as `data-hotkey-scope`
- Add a special `Mod` character that translates to either `Meta` on Mac or `Control` on other platforms HOT 2
- Handle keypresses in elements with dotted ids HOT 1
- `eventToHotkeyString ` returns doubled "modifier" when "key" is a modifier
- Hotkey Mapper Tool accessibility improvements HOT 4
- Hotkey version 2 HOT 1
- Release action fails on publish to npm HOT 2
- `eventToHotKey` inconsistent `alt` key behaviour on Mac
- API alterations to allow injection of hotkey parsing and event processing HOT 4
- TypeError: Cannot read properties of undefined (reading 'startsWith')
- Hotkey version 3 HOT 4
- Any ways to define which event to fire when hotkey is triggered? HOT 4
- How might I make the user press the shortcut twice before running the keyDownHandler?
- Listen for some hotkeys on form fields
- Uncomment emulator secrets when vault token is minted HOT 1
- The / hotkey does not work HOT 9
- Add support for chords to mapper tool
- Add support for `event.code`
- Expose `hotkey` and `SequenceTracker` components
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hotkey.