mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
board doesn't handle focus-related keys unless it has the focus.
This commit is contained in:
parent
25eb722682
commit
6c93fc0a0c
1 changed files with 6 additions and 3 deletions
|
@ -2717,7 +2717,7 @@ board_handleKey( BoardCtxt* board, XP_Key key )
|
|||
} else if ( board->focussed == OBJ_TRAY ) {
|
||||
result = tray_moveCursor( board, key );
|
||||
}
|
||||
} else {
|
||||
} else if ( board->focussed != OBJ_NONE ) {
|
||||
invalFocusOwner( board );
|
||||
shiftFocusUp( board, key );
|
||||
result = XP_TRUE;
|
||||
|
@ -2734,8 +2734,10 @@ board_handleKey( BoardCtxt* board, XP_Key key )
|
|||
|
||||
#ifdef KEYBOARD_NAV
|
||||
case XP_FOCUSCHANGE_KEY:
|
||||
shiftFocusUp( board, XP_CURSOR_KEY_RIGHT );
|
||||
result = XP_TRUE;
|
||||
if ( board->focussed != OBJ_NONE ) {
|
||||
shiftFocusUp( board, XP_CURSOR_KEY_RIGHT );
|
||||
result = XP_TRUE;
|
||||
}
|
||||
break;
|
||||
|
||||
case XP_RETURN_KEY:
|
||||
|
@ -2880,6 +2882,7 @@ void
|
|||
shiftFocusUp( BoardCtxt* board, XP_Key key )
|
||||
{
|
||||
BoardObjectType next = OBJ_NONE;
|
||||
XP_ASSERT( board->focussed != OBJ_NONE );
|
||||
util_notifyFocusChange( board->util, board->focussed, key, &next );
|
||||
|
||||
if ( board->focussed != next ) {
|
||||
|
|
Loading…
Reference in a new issue