* Our jump-to-next-group never worked, and since no one complained, option-tab
now takes over this role (leaving Alt-Tab) to the application. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32517 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -48,9 +48,6 @@
|
|||||||
#include <tracker_private.h>
|
#include <tracker_private.h>
|
||||||
#include <WindowPrivate.h>
|
#include <WindowPrivate.h>
|
||||||
|
|
||||||
#ifndef __HAIKU__
|
|
||||||
# include "PNGDump.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//#define DEBUG_WIN
|
//#define DEBUG_WIN
|
||||||
#ifdef DEBUG_WIN
|
#ifdef DEBUG_WIN
|
||||||
@@ -172,7 +169,7 @@ static property_info sWindowPropInfo[] = {
|
|||||||
"Minimize", { B_GET_PROPERTY, B_SET_PROPERTY },
|
"Minimize", { B_GET_PROPERTY, B_SET_PROPERTY },
|
||||||
{ B_DIRECT_SPECIFIER }, NULL, 0, { B_BOOL_TYPE }
|
{ B_DIRECT_SPECIFIER }, NULL, 0, { B_BOOL_TYPE }
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"TabFrame", { B_GET_PROPERTY },
|
"TabFrame", { B_GET_PROPERTY },
|
||||||
{ B_DIRECT_SPECIFIER }, NULL, 0, { B_RECT_TYPE }
|
{ B_DIRECT_SPECIFIER }, NULL, 0, { B_RECT_TYPE }
|
||||||
@@ -3471,8 +3468,9 @@ BWindow::_HandleKeyDown(BMessage* event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Keyboard navigation through views
|
// Keyboard navigation through views
|
||||||
// (B_OPTION_KEY makes BTextViews and friends navigable, even in editing mode)
|
// (B_OPTION_KEY makes BTextViews and friends navigable, even in editing
|
||||||
if (key == B_TAB && (modifiers & (B_COMMAND_KEY | B_OPTION_KEY)) != 0) {
|
// mode)
|
||||||
|
if (key == B_TAB && (modifiers & B_OPTION_KEY) != 0) {
|
||||||
_KeyboardNavigation();
|
_KeyboardNavigation();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -3596,7 +3594,8 @@ BWindow::_KeyboardNavigation()
|
|||||||
message->FindInt32("modifiers", (int32*)&modifiers);
|
message->FindInt32("modifiers", (int32*)&modifiers);
|
||||||
|
|
||||||
BView* nextFocus;
|
BView* nextFocus;
|
||||||
int32 jumpGroups = modifiers & B_CONTROL_KEY ? B_NAVIGABLE_JUMP : B_NAVIGABLE;
|
int32 jumpGroups = (modifiers & B_OPTION_KEY) != 0
|
||||||
|
? B_NAVIGABLE_JUMP : B_NAVIGABLE;
|
||||||
if (modifiers & B_SHIFT_KEY)
|
if (modifiers & B_SHIFT_KEY)
|
||||||
nextFocus = _FindPreviousNavigable(fFocus, jumpGroups);
|
nextFocus = _FindPreviousNavigable(fFocus, jumpGroups);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user