Comments (3)
Hey @tobyzerner thanks for the issue!
This library explicitly ignores shortcuts fired in form fields because it can be very problematic with regard to accessibility.
If you need to enable those kind of shortcuts, it's recommended to bind an event listener directly to handle that specific use case. We do this at GitHub; hotkey
is used as a convenience layer but cases that need more fine tuning are done manually.
from hotkey.
Hey @tobyzerner thanks for the issue!
This library explicitly ignores shortcuts fired in form fields because it can be very problematic with regard to accessibility.
If you need to enable those kind of shortcuts, it's recommended to bind an event listener directly to handle that specific use case. We do this at GitHub;
hotkey
is used as a convenience layer but cases that need more fine tuning are done manually.
@keithamus How is this done with the command palette in github and listening to meta+k
on all inputs across github?
from hotkey.
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.