* use the keymap control and command keys to trigger the team monitor
* this fixes part of #3176 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28782 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -636,8 +636,8 @@ KeyboardDevice::_ControlThread()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isKeyDown && keycode == 0x34 // DELETE KEY
|
if (isKeyDown && keycode == 0x34 // DELETE KEY
|
||||||
&& (states[0x5c >> 3] & (1 << (7 - (0x5c & 0x7))))
|
&& (states[fCommandKey >> 3] & (1 << (7 - (fCommandKey & 0x7))))
|
||||||
&& (states[0x5d >> 3] & (1 << (7 - (0x5d & 0x7))))) {
|
&& (states[fControlKey >> 3] & (1 << (7 - (fControlKey & 0x7))))) {
|
||||||
LOG_EVENT("TeamMonitor called\n");
|
LOG_EVENT("TeamMonitor called\n");
|
||||||
|
|
||||||
// show the team monitor
|
// show the team monitor
|
||||||
@@ -825,6 +825,8 @@ KeyboardDevice::_UpdateSettings(uint32 opcode)
|
|||||||
fKeymap.LoadCurrent();
|
fKeymap.LoadCurrent();
|
||||||
fModifiers = fKeymap.Locks();
|
fModifiers = fKeymap.Locks();
|
||||||
_UpdateLEDs();
|
_UpdateLEDs();
|
||||||
|
fControlKey = fKeymap.KeyForModifier(B_LEFT_CONTROL_KEY);
|
||||||
|
fCommandKey = fKeymap.KeyForModifier(B_LEFT_COMMAND_KEY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user