• Jesper Dam's avatar
    Fix issue #326: correct handling of shift key · f6a1d98a
    Jesper Dam authored
    When shortcut modifiers (modifier keys such as CTRL, which do not participate in
    composing character input) are pressed, we try to suppress the keypress
    event, as browsers do not reliably generate it. This means that
    subsequent key events are decoded only based on the keydown event.
    
    Due to a type error (comparing a string to a number), shift was
    mistakenly treated as a shortcut modifier, preventing text input which
    relied on shift, such as _ and %, from being generated.
    f6a1d98a
keyboard.js 19.8 KB