From f9da8712126c8a377feb40989f30726c1f8974df Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Wed, 28 Oct 2009 20:25:05 +0000 Subject: * Do 1879 (tabbing out of an editfield hides the mouse) in a different way that doesn't partly break r1837 (tab, uparrow, downarrow sends chat text) --- src/ui/ui_shared.c | 9 +++++---- 1 file 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; -- cgit