Skip to content

Difference in allowed accelerator keys between Qt and Wx #2063

@drbsg

Description

@drbsg

There are a number of accelerator keys that the Wx backend allows that the Qt backend does not, for example symbols such as "-" and "=". Under Qt key_event_to_name maps them to 'Unknown-Key' because they are not explicitly listed in key_map, but under Wx there is a fall-back condition that passes through any key code accepted by chr.

Is this intended behaviour, perhaps enforcing a style guide, or an accident of history? 😄

This was spotted under traitsui v6.0.0, but it looks like the issue affects all versions since (and I haven't checked earlier).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions