| View previous topic :: View next topic |
| By default, what should pressing Escape in a GUI window do? |
| Nothing. |
|
83% |
[ 5 ] |
| Cancel the form by hiding it. |
|
0% |
[ 0 ] |
| Other |
|
16% |
[ 1 ] |
|
| Total Votes : 6 |
|
| Author |
Message |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Fri Sep 10, 2004 1:32 am Post subject: Should pressing escape do nothing or cancel/hide the GUI? |
|
|
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 |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Fri Sep 10, 2004 2:21 am Post subject: |
|
|
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 |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Fri Sep 10, 2004 4:18 am Post subject: |
|
|
yeah beardboy has worded it rightly. though having an easy GuiCancel is better than a specific hotkey routine. _________________
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Fri Sep 10, 2004 1:18 pm Post subject: |
|
|
| Quote: | | though having an easy GuiCancel is better than a specific hotkey routine | Can you clarify? |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Fri Sep 10, 2004 1:59 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Fri Sep 10, 2004 2:04 pm Post subject: |
|
|
| 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 |
|
 |
Nemroth
Joined: 07 Sep 2004 Posts: 262 Location: France
|
Posted: Fri Sep 10, 2004 6:13 pm Post subject: |
|
|
| For my point of view I'm OK with GuiEscape... |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Fri Sep 10, 2004 6:38 pm Post subject: |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Fri Sep 10, 2004 6:47 pm Post subject: |
|
|
| I'm relieved, thanks. |
|
| Back to top |
|
 |
|