Comments (5)
Sure, I'm thinking right now about API for asking keymage to call e.preventDefault()
on every successful key press in sequence.
from keymage.
In the meantime I've changed index.html
so it won't try to override browser defaults. :) It's just that I'm on OS X and 'command-j' means nothing in Chrome.
from keymage.
This is fixed by #2, you can bind with preventDefault option: keymage('ctrl-j k', function() {}, {preventDefault: true});
.
from keymage.
It still doesn't appear to prevent the default keyboard shortcuts to be overriden.
Google Chrome Version 26.0.1410.5 dev-m
from keymage.
What do you mean? Can you show me what exactly do you do that it doesn't work for you?
from keymage.
Related Issues (13)
- Make bindings for blessed HOT 1
- Add meta HOT 3
- Disable while text field is focused? HOT 5
- Use with specific DOM element, don't attach to window HOT 4
- Support attaching to keypress and not only keydown HOT 16
- Can't bind listener for the "Shift" key only HOT 2
- KeyboardEvent.keyCode deprecated HOT 1
- Add a tag HOT 9
- Travis-CI integration HOT 1
- Publish to NPM HOT 12
- Allow to unbind key events HOT 3
- Return prepared unbind()-function from keymage() HOT 2
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 keymage.