mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-29 14:45:53 +08:00
Set the correct key for "return" on Window.
This is related to: https://github.com/ArthurSonzogni/FTXUI/issues/27
This commit is contained in:
parent
e3ca437a48
commit
5f624431f1
@ -166,7 +166,11 @@ Event Event::ArrowDown = Event::Special("\x1B[B");
|
|||||||
Event Event::Backspace = Event::Special({127});
|
Event Event::Backspace = Event::Special({127});
|
||||||
Event Event::Delete = Event::Special("\x1B[3~");
|
Event Event::Delete = Event::Special("\x1B[3~");
|
||||||
Event Event::Escape = Event::Special("\x1B");
|
Event Event::Escape = Event::Special("\x1B");
|
||||||
|
#if defined(_WIN32)
|
||||||
|
Event Event::Return = Event::Special({13});
|
||||||
|
#else
|
||||||
Event Event::Return = Event::Special({10});
|
Event Event::Return = Event::Special({10});
|
||||||
|
#endif
|
||||||
Event Event::Tab = Event::Special({9});
|
Event Event::Tab = Event::Special({9});
|
||||||
Event Event::TabReverse = Event::Special({27, 91, 90});
|
Event Event::TabReverse = Event::Special({27, 91, 90});
|
||||||
Event Event::F1 = Event::Special("\x1B[OP");
|
Event Event::F1 = Event::Special("\x1B[OP");
|
||||||
|
Loading…
Reference in New Issue
Block a user