* 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
This commit is contained in:
@@ -161,6 +161,7 @@ BKeymap::IsModifierKey(uint32 keyCode) const
|
|||||||
{
|
{
|
||||||
return keyCode == fKeys.caps_key
|
return keyCode == fKeys.caps_key
|
||||||
|| keyCode == fKeys.num_key
|
|| keyCode == fKeys.num_key
|
||||||
|
|| keyCode == fKeys.scroll_key
|
||||||
|| keyCode == fKeys.left_shift_key
|
|| keyCode == fKeys.left_shift_key
|
||||||
|| keyCode == fKeys.right_shift_key
|
|| keyCode == fKeys.right_shift_key
|
||||||
|| keyCode == fKeys.left_command_key
|
|| keyCode == fKeys.left_command_key
|
||||||
@@ -426,7 +427,7 @@ BKeymap&
|
|||||||
BKeymap::operator=(const BKeymap& other)
|
BKeymap::operator=(const BKeymap& other)
|
||||||
{
|
{
|
||||||
Unset();
|
Unset();
|
||||||
|
|
||||||
fChars = new char[fCharsSize];
|
fChars = new char[fCharsSize];
|
||||||
fCharsSize = other.fCharsSize;
|
fCharsSize = other.fCharsSize;
|
||||||
memcpy(fChars, other.fChars, fCharsSize);
|
memcpy(fChars, other.fChars, fCharsSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user