enthought / enthought/traitsui

Escape key closes windows

Open
#1,461 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

The default behaviour of a TraitsUI window is that the escape key closes the window with the same behaviour as clicking the close titlebar icon. This is probably OK for modal dialogs, but is not good behaviour for things which are intended to be more long-lived (eg. project or document style windows).

Currently this is fairly hard-coded behaviour; there are no view-level options to turn it on or off. It can be worked around with a "do nothing" keybinding for the escape key, but the fix is not obvious and may have other side-effects.

Probably the best behaviour would be to remove the current hard-coded behaviour, and add default keybindings for escape that replicate the existing behaviour. Users would then be able to override using a different set of keybindings.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.