mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
Support Ctrl+A in the windows toolkit address bar
This commit is contained in:
parent
410cb9a8fd
commit
1ea47f9caf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user