Preserve state of lock keys when keymap is loaded.

Signed-off-by: Axel Dörfler <[email protected]>
This commit is contained in:
Jessica Hamilton
2012-08-02 00:04:52 +02:00
committed by Jérôme Duval
parent 894bce690b
commit da2f4733e6
+4 -1
View File
@@ -339,7 +339,10 @@ Keymap::SetDeadKeyTrigger(dead_key_index deadKeyIndex, const BString& trigger)
status_t
Keymap::Use()
{
return _restore_key_map_();
status_t result = _restore_key_map_();
if (result == B_OK)
set_keyboard_locks(modifiers());
return result;
}