diff options
author | Tim Angus <tim@ngus.net> | 2009-10-26 22:03:34 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:08 +0000 |
commit | 66bd10ca6eaf423cbfcd265ebe3964440268e0f2 (patch) | |
tree | f990e4116d914ba9e54c1193da81c3e6275309f2 /src/ui | |
parent | 86509e9172baeb702ca8343120791fefdf663bfa (diff) |
* Fix tabbing away from an edit field hiding the mouse cursor
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui_shared.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |