Ticket #8773: keymap.patch

File keymap.patch, 474 bytes (added by jessicah, 8 years ago)

preserve lock keys status when setting keymap

  • src/preferences/keymap/Keymap.cpp

    diff --git a/src/preferences/keymap/Keymap.cpp b/src/preferences/keymap/Keymap.cpp
    index 6001ae7..817d86e 100644
    a b Keymap::SetDeadKeyTrigger(dead_key_index deadKeyIndex, const BString& trigger)  
    339339status_t
    340340Keymap::Use()
    341341{
    342     return _restore_key_map_();
     342    status_t result = _restore_key_map_();
     343    if (result == B_OK)
     344        set_keyboard_locks(modifiers());
     345    return result;
    343346}
    344347
    345348