https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=13363

--- Comment #8 from Guy Harris <g...@alum.mit.edu> ---
(In reply to Alexander Petrossian (PAF) from comment #1)
> Created attachment 15210 [details]
> example of "traditional" dialog, when non-default button is blue-framed and
> can be pressed with Spacebar shortcut
> 
> In Windows in similar dialog windows keyboard shortcuts are traditionally
> different:
> * Escape = cancel
> * Enter+Space = accept default button

Microsoft's documentation:

   
https://msdn.microsoft.com/en-us/library/windows/desktop/dn742465(v=vs.85).aspx

is a bit complicated, as it says

    Default buttons. Windows with command buttons and command links have a
single default button indicated by a highlighted border, which is the button
that is clicked when the Enter key is pressed. There is a single default
command button or command link assigned by default. However, the default button
moves when the user tabs to another command button or command link.
Consequently, any command button or command link with input focus is also
always the default button.

    [OK]  [Cancel]

    The OK button is normally the default button, as indicated by its
highlighted border. However, if the user were to tab to the Cancel button, it
would become the default button and would be activated with the Enter key.

    Spacebar, Enter, and Esc keys. The spacebar activates the control with
input focus, whereas the Enter key activates the default button. Pressing the
Esc key cancels or closes the window.

So, presumably, space and Enter do the same thing if a button has the input
focus, but if some control *other* than a command button or command link has
the input focus, space activates *that* control, but Enter activates the
"default button", whatever that might be in this situation - the last button
that *did* have the input focus, perhaps?

-- 
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
             mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe

Reply via email to