Comments (15)
IE is a work-in-progress right now. I have been looking into supporting it in some kind of capacity, but it'll likely only be jQuery dependant.
This is a definite requirement for a 1.0 though - ideally I'd like to support IE9+ standalone, with support for IE6+ with jQuery as a dependency.
Thanks for the advice around the metaKey though, I'll definitely look into this!
from jwerty.
@keithamus - I created a fork and started working on adding IE support. It's not complete (only 2 of the 18 tests pass), so I haven't submitted a pull request, but thought you might be interested to see what I've done so far.
from jwerty.
@flesch that is fantastic, thanks very much! I have a couple of things I want to chime in on this for now, with actual work to follow up later:
- I originally -- intentionally -- skipped
attachEvent
for many reasons, mostly because I'm stubborn and I don't want to code for IE when the lib also supports jQuery (and, I don't know anyone who would use this lib raw, for IE, without jQuery). Depending on the volume of complaints about lack of raw-js-ie support would decide whether I changed my mind or not. - A lot of the tests are failing because of broken tests, not broken code. For example
createEventObject
/fireEvent
isn't used in the tests to build any keyboard events, so where the code might have a change at passing for genuine keyboard events, it doesn't. I've actually got some un-committed code sitting here which fixes issues like these, and allows about 70% of the tests (with jQuery) to pass, so I'll commit this shortly. - There is some really odd behaviour with the metaKey attrib in Windows with Internet Explorer. I know jQuery spent some time hashing this out and solving it. Something along the lines of that if ctrlKey is true, metaKey is undefined, unless shiftKey is present... I'd like to properly solve this before this lib is deemed "ie ready"
from jwerty.
It makes sense not to reinvent what jQuery's cracked, though I was hoping not to have it as a dependency (using Ender in a project now). So, +1...?
I have to admit I only tested a global hotkey (overriding CTRL+S
) and one bound to a textarea, so where I'm checking p in event
in the jwerty.is()
loop, that only prevents IE from throwing an error.
I look forward to seeing what you have!
from jwerty.
Just out of curiosity, what are you using to bind/listen to events onto DOM elements? Maybe it'd be better to be able to support custom bind methods instead of just supporting IE?
from jwerty.
I apologize for the late answer. I am using jquery binding bind/delegate/live depending on the requirement :
jQuery(document)
.unbind('.debugModal')
.bind('keydown.debugModal.openDebug', jwerty.event(debugKey, loadDebugDetail));
jQuery('.detail-meta').delegate('.inplace input:text', 'keydown', jwerty.event('enter', function() {
...
}))
from jwerty.
That question was mostly for @flesch as he was suggesting fuller IE support. While I'm happy to support IE with jQuery/Ender I don't see much utility in providing event listener degradation for IE.
from jwerty.
Hello, first I'd like to say thanks for the plugin you created. I swear that I searched a lot something like these and I didn't find. I'm a webdesigner trying to be a little more complex and using this plugin to improve the acessibilty of my websites. But how some people noticed, the plugin doesn't work on internet explorer. Do you have a fix for it already or the project is closed?
Thanks Thiago dos Anjos from Brazil
from jwerty.
A fix is in the works, but I have been a bit busy with other projects, personal life, and my day job over the past two months. The project definitely isn't closed and I plan to start working on it as soon as I can. Thanks for the support!
from jwerty.
Ok thanks for the reply...You're very polite.
from jwerty.
It's bad that jwerty is not available for IE, because I was really hoping include it in our project.
According to unit tests, when I run them in IE9 having IE9-th rendering applied - all of tests pass except of one. But when I switch to IE8 mode - tests completely fail.
When should we expect new commits regarding IE? (I know I shouldn't ask that, but once I'm here...:)
from jwerty.
Sorry I should be updating the tests for these fairly soon - been a little busy with work and other projects.
from jwerty.
Any progress in IE support?
from jwerty.
What is the status of IE key binding? If it's not fixed, I'd be willing to put some money behind getting it fixed immediately. I only need IE9+ support.
from jwerty.
If I recall IE9 works fine, but I could be wrong, I haven't worked on this in a long time. If you want to put some money behind it, please, be my guest ;)
from jwerty.
Related Issues (20)
- Keyboard shortcut to launch modal window... HOT 2
- Bugs with some symbols (OSX) HOT 2
- Typo on the website
- ctrl+n binding? HOT 1
- Need for an ability to detect if ctrl/shift/alt key is active at current event HOT 3
- Unbind key will not work
- IE 8 issue when binding to enter key in textboxes HOT 2
- Key combo triggers on single key. HOT 1
- Rm canBridge.js
- Firing actually doesn't do anything in latest Chrome?
- Comparison with established keyboard libraries HOT 1
- Minus (-) key doesn't work HOT 2
- Unbinding should be internalized HOT 6
- Please push latest version to npm
- jwerty.key(...) returns nothing
- cmd+l not working in Safari
- get actual keys pressed when matching regex or optional HOT 1
- document using + sign HOT 4
- Difference between source code and archives/npmjs versions HOT 2
- Unbind doesn't work. 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 jwerty.