ESC button in Sketch

A forum for research and development of the user interface of FreeCAD

Moderator: agryson

User avatar
PaFe
Posts: 16
Joined: Thu May 12, 2016 7:05 am
Location: Italy

ESC button in Sketch

Postby PaFe » Sat Sep 01, 2018 2:44 pm

Hello. I would talk about the behaviour of the ESC button using sketch. If a sketch tool is active (line, for example), the ESC button gets the deactivation of the tool, and this is right for sure. But if no tool is active, the ESC button exit the sketch. Personally I think that this last behaviour is a little bit annoying. Often is useful to press ESC just to be sure that no tool is active (for example using constraints), so if no tool was active I think ESC should do nothing. What do you think about?
User avatar
Kunda1
Posts: 3933
Joined: Thu Jan 05, 2017 9:03 pm

Re: ESC button in Sketch

Postby Kunda1 » Sat Sep 01, 2018 2:57 pm

PaFe wrote:
Sat Sep 01, 2018 2:44 pm
Hello. I would talk about the behaviour of the ESC button using sketch. If a sketch tool is active (line, for example), the ESC button gets the deactivation of the tool, and this is right for sure. But if no tool is active, the ESC button exit the sketch. Personally I think that this last behaviour is a little bit annoying. Often is useful to press ESC just to be sure that no tool is active (for example using constraints), so if no tool was active I think ESC should do nothing. What do you think about?
Yea, that makes sense. It reminds me of when I use vim where the ESC key plays a roll in base-lining the vim command queue
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
chrisb
Posts: 14571
Joined: Tue Mar 17, 2015 9:14 am

Re: ESC button in Sketch

Postby chrisb » Sat Sep 01, 2018 4:18 pm

I am one of the Mac users who use the Esc key instead of right mouse button, because the Qt5 version always zooms on RMB. So I'm not voting against it, but there are use cases where it is sensible to leave Sketcher on ESC key:

If instead of the Task panel the Tree is shown, then it is well possible to leave sketcher immediately with the ESC key. Without you have to switch to the Task panel first and close Sketcher from there.

The same holds if the buttons on top are out of sight: there might be some scrolling necessary before Sketcher can be closed.

Worst case is having both: switch and scroll.

These use cases are not severe but they should be considered.
User avatar
HarryGeier
Posts: 1044
Joined: Mon Jul 10, 2017 12:36 pm
Location: Hof Germany

Re: ESC button in Sketch

Postby HarryGeier » Sun Sep 02, 2018 8:04 am

I would also prefer ESC to do nothing after leaving a mode. I allways have problems with trainees at the school , when they click to often and get lost like.. oooh all is away now...
Kaum macht man´s richtig , gehts´s
My Video Tutorials on Youtube: https://www.youtube.com/channel/UCoe3B ... p8Q/videos
My FreeCAD Stuff on Hidrive: https://my.hidrive.com/share/qr3l1yddy6#$/
User avatar
PaFe
Posts: 16
Joined: Thu May 12, 2016 7:05 am
Location: Italy

Re: ESC button in Sketch

Postby PaFe » Sun Sep 02, 2018 8:43 am

chrisb wrote:
Sat Sep 01, 2018 4:18 pm
I am one of the Mac users who use the Esc key instead of right mouse button, because the Qt5 version always zooms on RMB. So I'm not voting against it, but there are use cases where it is sensible to leave Sketcher on ESC key:

If instead of the Task panel the Tree is shown, then it is well possible to leave sketcher immediately with the ESC key. Without you have to switch to the Task panel first and close Sketcher from there.

The same holds if the buttons on top are out of sight: there might be some scrolling necessary before Sketcher can be closed.

Worst case is having both: switch and scroll.

These use cases are not severe but they should be considered.
Maybe it would be better to assign ESC only to deactivate sketch tools, and for example ctrl+Q or ctrl+W (cmd for mac) or so, to exit the sketch.
Jee-Bee
Posts: 1703
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: ESC button in Sketch

Postby Jee-Bee » Sun Sep 02, 2018 9:30 am

Ctrl+q is closing app
Ctrl+w is closing file
chrisb
Posts: 14571
Joined: Tue Mar 17, 2015 9:14 am

Re: ESC button in Sketch

Postby chrisb » Sun Sep 02, 2018 9:46 am

I don't know if Shift+ESC is recognized as a combination?
Jee-Bee
Posts: 1703
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: ESC button in Sketch

Postby Jee-Bee » Sun Sep 02, 2018 11:16 am

Is ctrl+Esc used as short cut by default? Just like ctrl+p or so...
I prefer the ctrl key above the shift key!!
chrisb
Posts: 14571
Joined: Tue Mar 17, 2015 9:14 am

Re: ESC button in Sketch

Postby chrisb » Sun Sep 02, 2018 11:28 am

Jee-Bee wrote:
Sun Sep 02, 2018 11:16 am
I prefer the ctrl key above the shift key!!
Good idea.
User avatar
PaFe
Posts: 16
Joined: Thu May 12, 2016 7:05 am
Location: Italy

Re: ESC button in Sketch

Postby PaFe » Sun Sep 02, 2018 2:01 pm

Jee-Bee wrote:
Sun Sep 02, 2018 9:30 am
Ctrl+q is closing app
Ctrl+w is closing file
Sorry, you are right!
Jee-Bee wrote:
Sun Sep 02, 2018 11:16 am
Is ctrl+Esc used as short cut by default? Just like ctrl+p or so...
I prefer the ctrl key above the shift key!!
I don't know why, but ctrl+ESC opens the windows start menù.

There is a configuration tool for shortcuts in Tools -> Customize ... -> Keyboard. There is the voice "exit the sketch" and ESC seems to be not assigned there... But ESC works anyway as described before