@heydon Nope. Escape chancels. (MAC Chrome 69)
@heydon Hitting Esc or tabbing to the ‘Cancel’ and pressing Space or Enter returns ‘cancelled’.
@aardrian On Windows? On OSX, I've had it confirmed (sorry, pun) that only Space on the Cancel button cancels. Enter confirms (!!!!)
@heydon Sorry, yes. Windows.
@aardrian No, thanks. Here's a vid of the behavior on OSX (I press Enter when Cancel is focused).
@heydon That appears to be… a problem. Did you try from Codepen debug mode in a private window with no add-ons?
@aardrian No, but others have confirmed it is a macOS behavior. You have to manually switch on keyboard focus in OS settings to even GET to the bug in the first place...
@heydon I have always hated that keyboard support is off by default. Just absurd.
@aardrian Indeed, sir.
@heydon Only happens to me with activated Voice Over. But then I can reproduce it :?
@bkastl Happens for me either way :-/
@heydon return key for the default. Space key to activate the currently selected UI element.
@heydon should have scrolled further to see it was already answered. Sadly it did not show up in the reply chain. :)
@heydon When cancelling with the Esc key it correctly gives cancelled (on Mac). I don't know how else to cancel it; I think it's impossible to move the focus from OK to Cancel.
@ppk I'm on OSX and can do that (I see the focus ring move). With Cancel focused, Space cancels but Enter confirms (!!!)
@heydon How do you do it? Maybe there's a setting I should toggle or something; I forget.
@ppk Oh, to enable focus of controls? You may have to go to Settings > Keyboard > Shortcuts to activate some disabled stuff.
@heydon Got it now! Test report confirmed: Enter confirms; Space cancels when the focus is on Cancel. Esc always cancels.
@ppk Thanks. It's a very counterintuitive in my opinion, but others say they're used to it.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!