IE e.keyCode - How can I differentiate between ampersand and up-arrow?
问题 I am fighting with a very strange javascript behavior on a jQuery UI widget I'm trying to fix. IE7 (win XP), jQuery 1.2.6 (yes, it's an old version). The widget is a combo-box, which captures keyboard events and has special behaviors for the arrow keys. When I try to type the "&" character into the flexbox input field, I get strange behavior. The flexbox has some code like: //initialization $myInputElement.keypress($.flexbox.process_key); $.flexbox.process_key = function process_key(e) { $