diff options
Diffstat (limited to 'src/ui/ui_shared.c')
-rw-r--r-- | src/ui/ui_shared.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index 2ea3e1ca..3a614e08 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -3451,12 +3451,13 @@ qboolean Item_TextField_HandleKey( itemDef_t *item, int key ) case K_KP_UPARROW: newItem = Menu_SetNextCursorItem( item->parent ); - if( newItem && ( newItem->type == ITEM_TYPE_EDITFIELD || newItem->type == ITEM_TYPE_NUMERICFIELD ) ) + if( newItem && ( newItem->type == ITEM_TYPE_EDITFIELD || + newItem->type == ITEM_TYPE_NUMERICFIELD ) ) g_editItem = newItem; - else + else if( newItem ) // restore mouse if not using an editfield anymore { - releaseFocus = qtrue; - goto exit; + g_editingField = qfalse; + g_waitingForKey = qfalse; } break; |