From 66bd10ca6eaf423cbfcd265ebe3964440268e0f2 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 26 Oct 2009 22:03:34 +0000 Subject: * Fix tabbing away from an edit field hiding the mouse cursor --- src/ui/ui_shared.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/ui') diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index 99f6ce32..2ea3e1ca 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -3453,6 +3453,12 @@ qboolean Item_TextField_HandleKey( itemDef_t *item, int key ) if( newItem && ( newItem->type == ITEM_TYPE_EDITFIELD || newItem->type == ITEM_TYPE_NUMERICFIELD ) ) g_editItem = newItem; + else + { + releaseFocus = qtrue; + goto exit; + } + break; case K_ENTER: @@ -3719,7 +3725,6 @@ qboolean Item_HandleKey( itemDef_t *item, int key, qboolean down ) case ITEM_TYPE_EDITFIELD: case ITEM_TYPE_NUMERICFIELD: - //return Item_TextField_HandleKey(item, key); return qfalse; break; -- cgit