diff options
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r-- | src/ui/inputwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 05cd1cc3..0257eda0 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -1162,7 +1162,8 @@ static iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) { | |||
1162 | return iTrue; | 1162 | return iTrue; |
1163 | case SDLK_RETURN: | 1163 | case SDLK_RETURN: |
1164 | case SDLK_KP_ENTER: | 1164 | case SDLK_KP_ENTER: |
1165 | if (mods == KMOD_SHIFT || (~d->inFlags & isUrl_InputWidgetFlag && | 1165 | if (mods == KMOD_SHIFT || (d->maxLen == 0 && |
1166 | ~d->inFlags & isUrl_InputWidgetFlag && | ||
1166 | deviceType_App() != desktop_AppDeviceType)) { | 1167 | deviceType_App() != desktop_AppDeviceType)) { |
1167 | pushUndo_InputWidget_(d); | 1168 | pushUndo_InputWidget_(d); |
1168 | deleteMarked_InputWidget_(d); | 1169 | deleteMarked_InputWidget_(d); |