agungprasetyosakti / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
0 stars 0 forks source link

Numpad numbers in IE7 does not work #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. $('#id').bind('keyup'), '1', fn);
2. Type the 1 number on the numeric keyboard (numpad) in IE7

Result:
Wrong code is sent to the browser.

Fix:
I added special keys for IE7 just like ff fix on line 62 (0.7.8)

Added from line 68:
    if (jQuery.browser.msie) {
        alert(jQuery.browser.msie);
        hotkeys.specialKeys = jQuery.extend(hotkeys.specialKeys, { 96: '0',
97: '1', 98: '2', 99:
            '3', 100: '4', 101: '5', 102: '6', 103: '7', 104: '8', 105: '9'
        });
    }

Original issue reported on code.google.com by davvah...@gmail.com on 24 Mar 2009 at 4:57

GoogleCodeExporter commented 8 years ago
Or even better: 

    // add firefox num pad char codes
    if (jQuery.browser.mozilla || jQuery.browser.msie) {
        hotkeys.specialKeys = jQuery.extend(hotkeys.specialKeys, { 96: '0', 97: '1',
98: '2', 99:
            '3', 100: '4', 101: '5', 102: '6', 103: '7', 104: '8', 105: '9'
        });
    }

Original comment by davvah...@gmail.com on 24 Mar 2009 at 4:58

GoogleCodeExporter commented 8 years ago
fixed

Original comment by Afro.Sys...@gmail.com on 3 May 2009 at 8:56