mordant icon indicating copy to clipboard operation
mordant copied to clipboard

Recognize `Escape` key when not used in escape sequence

Open Jojo4GH opened this issue 6 months ago • 5 comments

Moved from comment on pull request: https://github.com/ajalt/mordant/pull/192#issuecomment-2254610167

ESC can both mean the escape key was pressed as well as be the start of an escape sequence. It might be possible to also use a short timeout on the second read here. Since every ESC in escape sequences is quickly followed by other characters this would allow to distinguishing from single Escape key presses and users would not need to press escape twice.

Jojo4GH avatar Jul 28 '24 19:07 Jojo4GH