[Plugin] Keycode

Post your completed addons to share with the community

Post » Wed Aug 22, 2012 2:25 pm

@alspal, I agree.
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608

Post » Tue Sep 11, 2012 10:48 pm

Sorry to resurrect an old post, but I've revisited the KeyCode plug-in after learning a lot more about JavaScript.

I've finally found where the issue lies between the KeyCode plug-in and the native Keyboard plug-in. The Keyboard plug-in calls the preventDefault method at the end of the onKeyDown and onKeyUp functions. This basically short-circuits any other keyboard events which follow.

@Ashley, is there any type of workaround that I can include in the KeyCode plug-in that will ignore the preventDefault call?

If not, I'm afraid the KeyCode plug-in is useless, when used in conjunction the Keyboard plug-in.

Thanks!
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608

Previous

Return to Completed Addons

Who is online

Users browsing this forum: Kev5454, Kyatric, Lordshiva1948 and 4 guests