Skip to content

Event::CtrlShift(char)? #516

@TianyiShi2001

Description

@TianyiShi2001

Question: Currently (in the latest master branch) it seems that only Event::Shift(char) and Event::CtrlShift(<non-character-key>), but not Event::CtrlShift(char), can be processed. Is it going to be implemented in the future? Are there any workarounds for now?

This feature would be helpful to me because I'm implementing a sudoku game, and it is conventional to map Ctrl + Z to undo and Ctrl + Shift + Z to redo.

Event::CtrlChar('z') => self.undo(),
Event::CtrlChar('Z') => self.redo(), // tried this, doesn't work
Event::CtrlShift(Key::???) => self.redo(), // Key::Char?

BTW can #503 be merged? I was a bit late for the final comment, bit I think it's ready to be merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions