From 697e17ffcdfefd59450c3f256013c9949705c8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 20 Apr 2010 07:49:24 +0000 Subject: [PATCH] * The scroll_lock also counts as a modifier; this was obviously not present in all Keymap variations. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36366 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/shared/Keymap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/shared/Keymap.cpp b/src/kits/shared/Keymap.cpp index 8b864c5bfa..ab8af3b9b0 100644 --- a/src/kits/shared/Keymap.cpp +++ b/src/kits/shared/Keymap.cpp @@ -161,6 +161,7 @@ BKeymap::IsModifierKey(uint32 keyCode) const { return keyCode == fKeys.caps_key || keyCode == fKeys.num_key + || keyCode == fKeys.scroll_key || keyCode == fKeys.left_shift_key || keyCode == fKeys.right_shift_key || keyCode == fKeys.left_command_key @@ -426,7 +427,7 @@ BKeymap& BKeymap::operator=(const BKeymap& other) { Unset(); - + fChars = new char[fCharsSize]; fCharsSize = other.fCharsSize; memcpy(fChars, other.fChars, fCharsSize);