Comments (3)
Hey @jeron-diovis.
This is expected until 0.14
lands and it's a warning you can safely ignore for now providing you're using the library as laid out in the "getting started" guide.
In 0.14 context use will be greatly simplified. https://github.com/Chrisui/react-hotkeys/blob/master/docs/getting-started.md#hotkey-map-context
If this is actually causing functional problems I'd be happy to look into it for you.
from react-hotkeys.
Shame on me, I missed this guide.
Indeed, using mixin did the trick. Thanks for pointing and for quick response.
Actually, while playing with it, I found out that nested hotkeys wasn't what I really need. I thought somehow that if I'll define a top-level HotKeys, then keyboard events, raised in it, will trigger handlers, defined in descendants. That is, I won't need to focus exact children to work with it's handlers (a kind of pubsub, actually).
Not sure it's even possible... But in practice nesting HotKeys only provides an additional abstraction layer between keycodes and business-logic's actions, nothing more.
Anyway, this lib is great. After introducing HOC it will become absolutely amazing, I think)
from react-hotkeys.
Cheers :)
I'm planning a large update which will bring up the library upto v1.0 when React v0.14 becomes stable to make the most of parent-based context and HoCs etc.
from react-hotkeys.
Related Issues (20)
- Dynamic hotkeys for multiple components.
- Handler function doesn't reference the latest state HOT 2
- [BUG] - released key is still considered pressed HOT 3
- Add "mod" as a key binding like mousetrap
- cmd+c triggers action bound to c even when allowCombinationSubmatches is false [BUG] HOT 3
- custom key codes shift+num1[BUG]
- [BUG] Shift+Space combination doesn't work and breaks other bindings HOT 1
- [BUG] Pressing the spacebar with no element focused breaks the event listeners HOT 2
- Get sequence which triggered the handler
- Hotkeys is wrapping my components in a div that is breaking my styling HOT 1
- [BUG] Key released still pressed if the focus is lost HOT 1
- [BUG] hitting space twice breaks all events HOT 1
- [BUG] Component does not update keymap HOT 2
- [BUG] Pressing Ctrl+ALT+[A number] keep the key in the combination until focus out.
- [BUG] Escape not working when used in GlobalHotKeys HOT 6
- [BUG] hotkeys not working after pressing tab HOT 2
- React-hotkeys not working with lazy import
- [BUG] Unable to preventDefault on "meta + enter" sequences, so browser treats enter as click
- [BUG] Slow unmount with many usages / larger component tree HOT 1
- New configure property `log` or `onMatched`
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 react-hotkeys.