Ticket #8773: 0001-Preserve-state-of-lock-keys-when-keymap-is-loaded.patch

File 0001-Preserve-state-of-lock-keys-when-keymap-is-loaded.patch, 820 bytes (added by jessicah, 8 years ago)
  • src/preferences/keymap/Keymap.cpp

    From cf64aa6afc7447a9a429cb4061bd7203ab20e3d4 Mon Sep 17 00:00:00 2001
    From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
    Date: Thu, 2 Aug 2012 09:41:00 +0000
    Subject: [PATCH] Preserve state of lock keys when keymap is loaded.
    
    ---
     src/preferences/keymap/Keymap.cpp |    5 ++++-
     1 file changed, 4 insertions(+), 1 deletion(-)
    
    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