This is a temporary implementation of ctrl-tab/switching between windows. It can be removed when we can use Twitcher (if we really want to use it in the end).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12294 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2005-04-11 20:11:46 +00:00
parent 0c45558df7
commit d7b4d4119c

View File

@ -1298,7 +1298,7 @@ void RootLayer::KeyboardEventHandler(int32 code, BPortLink& msg)
STRACE(("Key Down: 0x%lx\n",scancode));
#if DISPLAYDRIVER == HWDRIVER
#if !TEST_MODE
// Check for workspace change or safe video mode
if(scancode>0x01 && scancode<0x0e)
{
@ -1333,7 +1333,12 @@ void RootLayer::KeyboardEventHandler(int32 code, BPortLink& msg)
//ServerApp *deskbar=app_server->FindApp("application/x-vnd.Be-TSKB");
//if(deskbar)
//{
printf("Send Twitcher message key to Deskbar - unimplmemented\n");
WinBorder *exActive = ActiveWinBorder();
WinBorder *exFocus = FocusWinBorder();
if (ActiveWorkspace()->MoveToBack(exFocus))
show_final_scene(exFocus, exActive);
//printf("Send Twitcher message key to Deskbar - unimplmemented\n");
if (string)
free(string);
break;
@ -1408,6 +1413,11 @@ void RootLayer::KeyboardEventHandler(int32 code, BPortLink& msg)
//ServerApp *deskbar=app_server->FindApp("application/x-vnd.Be-TSKB");
//if(deskbar)
//{
WinBorder *exActive = ActiveWinBorder();
WinBorder *exFocus = FocusWinBorder();
if (ActiveWorkspace()->MoveToBack(exFocus))
show_final_scene(exFocus, exActive);
printf("Send Twitcher message key to Deskbar - unimplmemented\n");
if (string)
free(string);