From 3bb7e6ba9efcea074d44e500769d3ba74828919e Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Tue, 26 Apr 2022 12:45:19 +0100 Subject: [PATCH] Fix duplicated shortcut on Windows SSH/Auth panel. As of df3a21d97b, this panel has two "Browse..." buttons, and is the first to do so. On Windows, the shortcut for this file chooser button was hardcoded to 'w', causing an assertion failure whenever switching to the Auth panel. I've just removed the shortcut -- there are others near enough that it's easy to reach the "Browse..." button with Tab. --- windows/controls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/windows/controls.c b/windows/controls.c index 3c7896a4..51d0921b 100644 --- a/windows/controls.c +++ b/windows/controls.c @@ -1668,8 +1668,7 @@ void winctrl_layout(struct dlgparam *dp, struct winctrls *wc, ctrl->fileselect.shortcut); shortcuts[nshortcuts++] = ctrl->fileselect.shortcut; editbutton(&pos, escaped, base_id, base_id+1, - "Bro&wse...", base_id+2); - shortcuts[nshortcuts++] = 'w'; + "Browse...", base_id+2); sfree(escaped); break; case CTRL_FONTSELECT: