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:
@@ -1298,7 +1298,7 @@ void RootLayer::KeyboardEventHandler(int32 code, BPortLink& msg)
|
|||||||
|
|
||||||
STRACE(("Key Down: 0x%lx\n",scancode));
|
STRACE(("Key Down: 0x%lx\n",scancode));
|
||||||
|
|
||||||
#if DISPLAYDRIVER == HWDRIVER
|
#if !TEST_MODE
|
||||||
// Check for workspace change or safe video mode
|
// Check for workspace change or safe video mode
|
||||||
if(scancode>0x01 && scancode<0x0e)
|
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");
|
//ServerApp *deskbar=app_server->FindApp("application/x-vnd.Be-TSKB");
|
||||||
//if(deskbar)
|
//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)
|
if (string)
|
||||||
free(string);
|
free(string);
|
||||||
break;
|
break;
|
||||||
@@ -1408,6 +1413,11 @@ void RootLayer::KeyboardEventHandler(int32 code, BPortLink& msg)
|
|||||||
//ServerApp *deskbar=app_server->FindApp("application/x-vnd.Be-TSKB");
|
//ServerApp *deskbar=app_server->FindApp("application/x-vnd.Be-TSKB");
|
||||||
//if(deskbar)
|
//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");
|
printf("Send Twitcher message key to Deskbar - unimplmemented\n");
|
||||||
if (string)
|
if (string)
|
||||||
free(string);
|
free(string);
|
||||||
|
|||||||
Reference in New Issue
Block a user