Failed to capture Ctrl + Alt + Arrow event in jQuery

For some strange reason, I can't fix the Ctrl+ Alt+ key combination Arrowinside textarea. Is this some kind of system hotkey that is swallowed by Windows? Ctrl+ Alt+ Any Letterand Ctrl+ Alt+ Shift+ Arrowwill receive a penalty.

$(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 I click Ctrl+ Alt+, Any LetterI see all 3 events in the console. When pressed Ctrl+ Alt+ Arrow, I see only 2 events (for Ctrland Alt).

Any ideas?

+3
source share
1 answer

, IE8, Firefox Chrome. ?

jquery hotkeys ?

+5

Source: https://habr.com/ru/post/1759007/


All Articles