Skip to content

Need to be able to alter escape key behavior #7436

@lee-deraud

Description

@lee-deraud

Checklist

Proposed new feature or change

In the visualization.gui (and probably the older visualization implementations as well), the escape key's default action is 'end program' with no warning.

And as far as I've been able to determine, there's no way to override that: it's possible to capture the keystroke (and possibly issue a warning), but the script terminates regardless of the return value from the callback. Losing work is probably the worst thing a GUI can do, and it's far too likely to happen with this behavior.

(Feel free to escalate this to a bug report, but it appears to be working as designed, no matter how wrong that appears to me.)

References

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions