diff options
Diffstat (limited to 'src/ui/ui_shared.c')
-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; |