diff options
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r-- | src/ui/inputwidget.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 24983d69..2de16e6e 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -1269,8 +1269,8 @@ void end_InputWidget(iInputWidget *d, iBool accept) { | |||
1269 | if (!accept) { | 1269 | if (!accept) { |
1270 | /* Overwrite the edited lines. */ | 1270 | /* Overwrite the edited lines. */ |
1271 | splitToLines_(&d->oldText, &d->lines); | 1271 | splitToLines_(&d->oldText, &d->lines); |
1272 | SDL_StopTextInput(); | ||
1273 | } | 1272 | } |
1273 | SDL_StopTextInput(); | ||
1274 | enableEditorKeysInMenus_(iTrue); | 1274 | enableEditorKeysInMenus_(iTrue); |
1275 | d->inFlags &= ~isMarking_InputWidgetFlag; | 1275 | d->inFlags &= ~isMarking_InputWidgetFlag; |
1276 | startOrStopCursorTimer_InputWidget_(d, iFalse); | 1276 | startOrStopCursorTimer_InputWidget_(d, iFalse); |
@@ -2153,11 +2153,11 @@ static iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) { | |||
2153 | updateAfterVisualOffsetChange_InputWidget_(d, w->root); | 2153 | updateAfterVisualOffsetChange_InputWidget_(d, w->root); |
2154 | } | 2154 | } |
2155 | } | 2155 | } |
2156 | else if (d->sysCtrl && isCommand_UserEvent(ev, "menu.opened")) { | 2156 | #endif |
2157 | if (deviceType_App() != desktop_AppDeviceType && isCommand_UserEvent(ev, "menu.opened")) { | ||
2157 | setFocus_Widget(NULL); | 2158 | setFocus_Widget(NULL); |
2158 | return iFalse; | 2159 | return iFalse; |
2159 | } | 2160 | } |
2160 | #endif | ||
2161 | if (isCommand_Widget(w, ev, "focus.gained")) { | 2161 | if (isCommand_Widget(w, ev, "focus.gained")) { |
2162 | if (contentBounds_InputWidget_(d).size.x < minWidth_InputWidget_) { | 2162 | if (contentBounds_InputWidget_(d).size.x < minWidth_InputWidget_) { |
2163 | setFocus_Widget(NULL); | 2163 | setFocus_Widget(NULL); |