mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
Unfocus any board object whenever pen touches board
This commit is contained in:
parent
4207a6ae66
commit
bb45f89a6f
1 changed files with 9 additions and 3 deletions
|
@ -2215,10 +2215,16 @@ board_handlePenDown( BoardCtxt* board, XP_U16 x, XP_U16 y, XP_Bool* handled )
|
|||
board->penDownObject = OBJ_NONE;
|
||||
} else {
|
||||
|
||||
#ifdef KEYBOARD_NAV
|
||||
/* clear focus as soon as pen touches board */
|
||||
result = invalFocusOwner( board );
|
||||
board->focussed = OBJ_NONE;
|
||||
#endif
|
||||
|
||||
switch ( onWhich ) {
|
||||
|
||||
case OBJ_BOARD:
|
||||
result = handlePenDownOnBoard( board, x, y );
|
||||
result = handlePenDownOnBoard( board, x, y ) || result;
|
||||
break;
|
||||
|
||||
case OBJ_TRAY:
|
||||
|
@ -2226,7 +2232,7 @@ board_handlePenDown( BoardCtxt* board, XP_U16 x, XP_U16 y, XP_Bool* handled )
|
|||
XP_ASSERT( board->trayVisState != TRAY_HIDDEN );
|
||||
|
||||
if ( board->trayVisState != TRAY_REVERSED ) {
|
||||
result = handlePenDownInTray( board, x, y );
|
||||
result = handlePenDownInTray( board, x, y ) || result;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -2652,7 +2658,7 @@ invalFocusOwner( BoardCtxt* board )
|
|||
board->dividerInvalid = XP_TRUE;
|
||||
}
|
||||
break;
|
||||
default: /* for compiler */
|
||||
case OBJ_NONE:
|
||||
draw = XP_FALSE;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue