AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Should pressing escape do nothing or cancel/hide the GUI?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  

By default, what should pressing Escape in a GUI window do?
Nothing.
83%
 83%  [ 5 ]
Cancel the form by hiding it.
0%
 0%  [ 0 ]
Other
16%
 16%  [ 1 ]
Total Votes : 6

Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Fri Sep 10, 2004 1:32 am    Post subject: Should pressing escape do nothing or cancel/hide the GUI? Reply with quote

I know some people like the ability to press escape (rather than Alt-F4) to dismiss a window. The question here is what should be the default, i.e. would a typical form designer want Escape to do nothing most of the time?

Thanks to Rajat for bringing up this issue, because I think it's a good one.
Back to top
View user's profile Send private message Send e-mail
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Fri Sep 10, 2004 2:21 am    Post subject: Reply with quote

I vote for nothing. If this feature is wanted the designer can add it, but having both options is prefered.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Sep 10, 2004 4:18 am    Post subject: Reply with quote

yeah beardboy has worded it rightly. though having an easy GuiCancel is better than a specific hotkey routine.
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Fri Sep 10, 2004 1:18 pm    Post subject: Reply with quote

Quote:
though having an easy GuiCancel is better than a specific hotkey routine
Can you clarify?
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Sep 10, 2004 1:59 pm    Post subject: Reply with quote

i meant that if GuiCancel is found, esc key should follow that, and if not found then esc shouldn't have any special meaning.

another option is to make it like 'default' option for buttons. add a particular option to a button's options and it starts reacting to escape key ... as u've done for enter key.
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Fri Sep 10, 2004 2:04 pm    Post subject: Reply with quote

Quote:
i meant that if GuiCancel is found, esc key should follow that
But doesn't GuiEscape seem much clearer and self-documenting? i.e. you press escape and that label is launched. If there is no label, pressing escape does nothing. Note that GuiClose is a separate animal because that is in response to a more decisive action by the user: closing the window.

Quote:
add a particular option to a button's options and it starts reacting to escape key
But wouldn't it be easier and more flexible to have something like this instead?

GuiEscape:
ButtonCancel:
gui, cancel
return
Back to top
View user's profile Send private message Send e-mail
Nemroth



Joined: 07 Sep 2004
Posts: 262
Location: France

PostPosted: Fri Sep 10, 2004 6:13 pm    Post subject: Reply with quote

For my point of view I'm OK with GuiEscape...
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Sep 10, 2004 6:38 pm    Post subject: Reply with quote

Quote:
you press escape and that label is launched. If there is no label, pressing escape does nothing.

i hope there's no confusion... that's exactly what i said (rather meant)!
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Fri Sep 10, 2004 6:47 pm    Post subject: Reply with quote

I'm relieved, thanks.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group