diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui_shared.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index bcb694ce..dd862c09 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -3628,11 +3628,11 @@ qboolean Item_TextField_HandleKey( itemDef_t *item, int key ) else { // Reached maximum field length - if( editPtr->maxChars && item->cursorPos >= editPtr->maxChars ) + { releaseFocus = qfalse; - - goto exit; + goto exit; + } } buff[ item->cursorPos ] = key; |