* Implemented switching to the fallback video mode when pressing
Command+Control+Escape. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31071 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -146,12 +146,9 @@ KeyboardFilter::Filter(BMessage* message, EventTarget** _target,
|
|||||||
if (message->what == B_KEY_DOWN
|
if (message->what == B_KEY_DOWN
|
||||||
&& message->FindInt32("key", &key) == B_OK
|
&& message->FindInt32("key", &key) == B_OK
|
||||||
&& message->FindInt32("modifiers", &modifiers) == B_OK) {
|
&& message->FindInt32("modifiers", &modifiers) == B_OK) {
|
||||||
// Check for safe video mode (F12 + l-cmd + l-ctrl + l-shift)
|
// Check for safe video mode (cmd + ctrl + escape)
|
||||||
if (key == B_F12_KEY
|
if (key == 0x01 && (modifiers & (B_COMMAND_KEY | B_CONTROL_KEY)) != 0) {
|
||||||
&& (modifiers & (B_LEFT_COMMAND_KEY
|
system("screenmode --fall-back &");
|
||||||
| B_LEFT_CONTROL_KEY | B_LEFT_SHIFT_KEY)) != 0) {
|
|
||||||
// TODO: Set to Safe Mode in KeyboardEventHandler:B_KEY_DOWN.
|
|
||||||
STRACE(("Safe Video Mode invoked - code unimplemented\n"));
|
|
||||||
return B_SKIP_MESSAGE;
|
return B_SKIP_MESSAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user