Implemented Switcher support in BWindow - doesn't yet work correctly for some

reason, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17164 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-04-18 16:27:09 +00:00
parent 90984a161a
commit cbdbfd3a80
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ if ! $(HAIKU_COMPATIBLE) {
SetSubDirSupportedPlatforms haiku libbe_test ;
UsePrivateHeaders shared app interface input ;
UsePrivateHeaders app input interface shared tracker ;
SEARCH_SOURCE += [ FDirName $(SUBDIR) BTextView ] ;
+15
View File
@@ -30,6 +30,7 @@
#include <PortLink.h>
#include <ServerProtocol.h>
#include <TokenSpace.h>
#include <tracker_private.h>
#include <ctype.h>
#include <stdio.h>
@@ -2807,6 +2808,20 @@ BWindow::_HandleKeyDown(char key, uint32 modifiers)
return true;
}
// Deskbar's Switcher
if (key == B_TAB && (modifiers & B_CONTROL_KEY) != 0) {
BMessenger deskbar(kDeskbarSignature);
if (deskbar.IsValid()) {
BMessage message('TASK');
message.AddInt32("key", B_TAB);
message.AddInt32("modifiers", modifiers);
message.AddInt64("when", system_time());
message.AddInt32("team", Team());
deskbar.SendMessage(&message);
}
return true;
}
// Handle shortcuts
if ((modifiers & B_COMMAND_KEY) != 0) {
// Command+q has been pressed, so, we will quit