Support Ctrl+A in the windows toolkit address bar

This commit is contained in:
zeug 2020-08-16 23:50:52 +01:00 committed by Vincent Sanders
parent 410cb9a8fd
commit 1ea47f9caf
1 changed files with 5 additions and 1 deletions

View File

@ -416,7 +416,11 @@ nsws_window_urlbar_callback(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
/* override messages */
switch (msg) {
case WM_CHAR:
if (wparam == 13) {
if (wparam == 1) {
/* handle ^A */
SendMessage(hwnd, EM_SETSEL, 0, -1);
return 1;
} else if (wparam == 13) {
SendMessage(gw->main, WM_COMMAND, IDC_MAIN_LAUNCH_URL, 0);
return 0;
}