mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 12:39:11 +00:00
Change: Allow DEL key to close windows when focused on a textbox
This commit is contained in:
@@ -476,6 +476,7 @@ HandleKeyPressResult Textbuf::HandleKeyPress(WChar key, uint16 keycode)
|
||||
case WKC_BACKSPACE: case WKC_DELETE:
|
||||
case WKC_CTRL | WKC_BACKSPACE: case WKC_CTRL | WKC_DELETE:
|
||||
edited = this->DeleteChar(keycode);
|
||||
if (!edited) return HKPR_NOT_HANDLED;
|
||||
break;
|
||||
|
||||
case WKC_LEFT: case WKC_RIGHT: case WKC_END: case WKC_HOME:
|
||||
|
Reference in New Issue
Block a user