← All bug reports

FS#1490Text Edit Control <ESC> maps to <cancel>. If anything it should map to <ok>

Type
Suggestion
Status
Closed
Resolution
Won't implement
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3.15.5
Operating system
All
Reported
2016-10-10 by ac90pilot
Closed
2016-10-21 by andrew

For all the Linux VI editor geeks, can you disable the <ESC> function in the text edit mode. <ESC> maps to <cancel>. If anything it should map to <ok>. Which creates no harm as it can be later undone. I have accidentally lost edits countless times due to an unbreakable habit.

Comments (2)

andrew 2016-10-11

Dialogs are usually cancelled in GUI applications when the user presses the escape key.

How about canceling the dialog but preserving the settings and text entered in the dialog? You could simply start the text tool again, and all your text and settings would still be there.

You can download a patched version of TextDialog.js which implements this behavior from here:
https://raw.githubusercontent.com/qcad/qcad/af8ee22bde3e8adacd1e8a46adbd8fe5018af4b6/scripts/Draw/Text/TextDialog/TextDialog.js

This file replaces the file scripts/Draw/Text/TextDialog/TextDialog.js in your QCAD installation. Let me know if that works for you.

ac90pilot 2016-10-28

Very nice ... Much better functionality ...

Closure comment

No further feedback from user provided.