views:

44

answers:

1

For some strange reasons I can't capture Ctrl+Alt+Arrow key combination inside textarea. Is it some sort of system hotkey that is getting swallowed by Windows? Ctrl+Alt+<Any Letter> and Ctrl+Alt+Shift+Arrow are getting captured fine.

$(document).ready(function() {
    $("textarea").bind("keydown", function(event) {
        console.log(event);
        if(event.altKey && event.ctrlKey && event.which == 38) {
            console.log("ctrl+alt+up"); //never triggered
        }
    });
});

When Ctrl+Alt+<Any Letter> is pressed I see all 3 events in console. When Ctrl+Alt+Arrow is pressed I see only 2 events (for Ctrl and Alt).

Any ideas?

+2  A: 

I've just checked your code and everything works just fine in IE8, Firefox and Chrome. What browser are you using?

Have you tried using jquery hotkeys plugin ?

Jarek
I tried this in FF and Chrome under Vista. Maybe I have some app running that is capturing this hotkey...
serg
ok I found it - it was Winamp :) Thanks.
serg