Jump to content
Sign in to follow this  
Mr. K

I wish this button was OK instead of Close

Recommended Posts

If it was OK then I could close the dialog box using the enter key on my keyboard, and that would save time and clicks. Or it could "Close" by using the enter key and that would work for me too.

1223488183_ScreenShot2019-04-04at7_43_43AM.thumb.png.f872d76c49037057e9324019b7d1c6e0.png

Share this post


Link to post
Share on other sites

I doubt that changing the label of the button would have the effect you want. What's important, I think, is whether the button has the focus or not.

However, on Windows, pressing Enter does work to close that dialog, unless I have clicked in the opacity field. If I've clicked in the Opacity field, the first Enter sets the opacity value, and it takes a second Enter to close the dialog.


-- Walt

Windows 10 Home, version 1809, 16GB memory, Intel Core i7-6700K @ 4.00Gz, GeForce GTX 970
Affinity Photo 1.6.5.123 and 1.7.0.333 Beta       / Affinity Designer 1.6..5.123 and 1.7.0.333 Beta    / Affinity Publisher 1.7.0.337 Beta

Share this post


Link to post
Share on other sites

MacOS X and newer generally discourage having buttons named "Ok" - button names are supposed to be verbs and be named for what they do.

The label on the button has nothing to do with the shortcut key - a button can be made the "default" button that responds to the return and enter keys regardless of what it is named.

Share this post


Link to post
Share on other sites

Ok, you all know what I mean. I don't write OS X code, nor to I watch whether OK is OK or not. Who cares. I want the window to close when I press the enter key. I did say I don't care if it says Close as long as it closes. If fact I don't care if it said "WHO CARES WHAT THIS BUTTON SAYS AS LONG AS WHEN I PRESS THE ENTER KEY THE WINDOW CLOSES."

Share this post


Link to post
Share on other sites

Sounds like you need confirmation from someone else on Mac whether pressing Enter closes that dialog box for them. As I said, it works on Windows.


-- Walt

Windows 10 Home, version 1809, 16GB memory, Intel Core i7-6700K @ 4.00Gz, GeForce GTX 970
Affinity Photo 1.6.5.123 and 1.7.0.333 Beta       / Affinity Designer 1.6..5.123 and 1.7.0.333 Beta    / Affinity Publisher 1.7.0.337 Beta

Share this post


Link to post
Share on other sites
27 minutes ago, walt.farrell said:

Sounds like you need confirmation from someone else on Mac whether pressing Enter closes that dialog box for them. As I said, it works on Windows.

Here on Mac I need to use the escape key to exit that pane, I always hesitate because in my mind that escape key means (to me) to cancel the operation.

If I type a value in the box and hit enter the value is entered and the box stays open, another hit of the enter key gets me a system beep and the box stays open. 

When I say enter key I mean the return key and the enter key on the extended keyboard.

I don't know if this is intended behaviour or an OS glitch but it kinda sucks being unable to close the box with the keyboard enter key.


MacBook Pro (13-inch, Mid 2012) Mac OS 10.12.6 || Mac Pro (Late 2013) Mac OS 10.14.5

Affinity Designer 1.6.1 | Affinity Photo 1.6.7 | Affinity Publisher beta 1.7.0.337 | Affinity Photo beta 1.7.0.128 | Affinity Designer Beta 1.7.0.12

Share this post


Link to post
Share on other sites
15 minutes ago, Old Bruce said:

but it kinda sucks being unable to close the box with the keyboard enter key.

Exactly.

Share this post


Link to post
Share on other sites
1 hour ago, Old Bruce said:

When I say enter key I mean the return key and the enter key on the extended keyboard.

While many applications treat them as having the same function, these are actually distinct keys on the Mac and some applications do treat them differently.

For example, in the FileMaker Pro database product, if I am entering text into a field, the return key will add a line break, but enter will commit the record (save the changes and stop editing).

Share this post


Link to post
Share on other sites

On a Mac laptop keyboard, since it's compact, the enter key is the return key. For programs that treat the two commands as something different, holding down on shift when pressing enter/return gets the enter behavior. However, that has no impact here. So neither return nor enter closes the dialog - no matter how many times you press the key.

Share this post


Link to post
Share on other sites

For one thing it is not a dialog box but a floating window.  It floats on top but otherwise acts like the studio panels - you can work with things behind that window and it updates to follow the selection; a dialog box generally would not allow you to do that.  This does not correspond to the old-style "ok" behavior here and closing the window does not cancel the changes because they are being made "live" and applied instantly, not just previewed.

Pressing return or enter to close a floating window is not a standard behavior, nor should it be - you are not acknowledging anything or giving your approval, you already did that by making the changes in the first place.

As @Old Bruce pointed out, the escape key does work on the Mac to close this floating window.

Share this post


Link to post
Share on other sites

That's fine, personally I wouldn't expect pressing enter to close the window. However, it's irritating when there's one behavior on Windows and another on Mac - unless it is a platform specific standard. 

Share this post


Link to post
Share on other sites
18 hours ago, JaneE said:

personally I wouldn't expect pressing enter to close the window.

Neither would I, which is why I was kind of surprised at this thread.

 

18 hours ago, JaneE said:

it's irritating when there's one behavior on Windows and another on Mac - unless it is a platform specific standard.

There are such things, they are two different beasts.  Logically it makes more sense that return/enter would NOT work here, but I don't know if there are specific standards for this on that other platform.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×