mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
Apply key mappings as they are so far
This commit is contained in:
parent
80e3e4f536
commit
51af4350fc
@ -114,8 +114,8 @@ impl backend::Backend for Concrete {
|
|||||||
pancurses::Input::KeyF15 => Event::Shift(Key::F3),
|
pancurses::Input::KeyF15 => Event::Shift(Key::F3),
|
||||||
// TODO: not sure what those are
|
// TODO: not sure what those are
|
||||||
pancurses::Input::KeyDL => Event::Refresh,
|
pancurses::Input::KeyDL => Event::Refresh,
|
||||||
pancurses::Input::KeyIL => Event::Refresh,
|
pancurses::Input::KeyIL => Event::Key(Key::Insert),
|
||||||
pancurses::Input::KeyDC => Event::Refresh,
|
pancurses::Input::KeyDC => Event::Key(Key::Del),
|
||||||
pancurses::Input::KeyIC => Event::Refresh,
|
pancurses::Input::KeyIC => Event::Refresh,
|
||||||
pancurses::Input::KeyEIC => Event::Refresh,
|
pancurses::Input::KeyEIC => Event::Refresh,
|
||||||
pancurses::Input::KeyClear => Event::Refresh,
|
pancurses::Input::KeyClear => Event::Refresh,
|
||||||
@ -123,13 +123,12 @@ impl backend::Backend for Concrete {
|
|||||||
pancurses::Input::KeyEOL => Event::Refresh,
|
pancurses::Input::KeyEOL => Event::Refresh,
|
||||||
pancurses::Input::KeySF => Event::Refresh,
|
pancurses::Input::KeySF => Event::Refresh,
|
||||||
pancurses::Input::KeySR => Event::Refresh,
|
pancurses::Input::KeySR => Event::Refresh,
|
||||||
pancurses::Input::KeyNPage => Event::Refresh,
|
pancurses::Input::KeyNPage => Event::Key(Key::PageDown),
|
||||||
pancurses::Input::KeyPPage => Event::Refresh,
|
pancurses::Input::KeyPPage => Event::Key(Key::PageUp),
|
||||||
pancurses::Input::KeySTab => Event::Shift(Key::Tab),
|
pancurses::Input::KeySTab => Event::Shift(Key::Tab),
|
||||||
pancurses::Input::KeyCTab => Event::Ctrl(Key::Tab),
|
pancurses::Input::KeyCTab => Event::Ctrl(Key::Tab),
|
||||||
pancurses::Input::KeyCATab => Event::CtrlAlt(Key::Tab),
|
pancurses::Input::KeyCATab => Event::CtrlAlt(Key::Tab),
|
||||||
pancurses::Input::KeyEnter => Event::Key(Key::Enter),
|
pancurses::Input::KeyEnter => Event::Key(Key::Enter),
|
||||||
// TODO: not sure what those are
|
|
||||||
pancurses::Input::KeySReset => Event::Refresh,
|
pancurses::Input::KeySReset => Event::Refresh,
|
||||||
pancurses::Input::KeyReset => Event::Refresh,
|
pancurses::Input::KeyReset => Event::Refresh,
|
||||||
pancurses::Input::KeyPrint => Event::Refresh,
|
pancurses::Input::KeyPrint => Event::Refresh,
|
||||||
@ -137,7 +136,7 @@ impl backend::Backend for Concrete {
|
|||||||
pancurses::Input::KeyAbort => Event::Refresh,
|
pancurses::Input::KeyAbort => Event::Refresh,
|
||||||
pancurses::Input::KeySHelp => Event::Refresh,
|
pancurses::Input::KeySHelp => Event::Refresh,
|
||||||
pancurses::Input::KeyLHelp => Event::Refresh,
|
pancurses::Input::KeyLHelp => Event::Refresh,
|
||||||
pancurses::Input::KeyBTab => Event::Refresh,
|
pancurses::Input::KeyBTab => Event::Shift(Key::Tab),
|
||||||
pancurses::Input::KeyBeg => Event::Refresh,
|
pancurses::Input::KeyBeg => Event::Refresh,
|
||||||
pancurses::Input::KeyCancel => Event::Refresh,
|
pancurses::Input::KeyCancel => Event::Refresh,
|
||||||
pancurses::Input::KeyClose => Event::Refresh,
|
pancurses::Input::KeyClose => Event::Refresh,
|
||||||
@ -167,21 +166,21 @@ impl backend::Backend for Concrete {
|
|||||||
pancurses::Input::KeySCommand => Event::Refresh,
|
pancurses::Input::KeySCommand => Event::Refresh,
|
||||||
pancurses::Input::KeySCopy => Event::Refresh,
|
pancurses::Input::KeySCopy => Event::Refresh,
|
||||||
pancurses::Input::KeySCreate => Event::Refresh,
|
pancurses::Input::KeySCreate => Event::Refresh,
|
||||||
pancurses::Input::KeySDC => Event::Refresh,
|
pancurses::Input::KeySDC => Event::Shift(Key::Del),
|
||||||
pancurses::Input::KeySDL => Event::Refresh,
|
pancurses::Input::KeySDL => Event::Refresh,
|
||||||
pancurses::Input::KeySelect => Event::Refresh,
|
pancurses::Input::KeySelect => Event::Refresh,
|
||||||
pancurses::Input::KeySEnd => Event::Refresh,
|
pancurses::Input::KeySEnd => Event::Shift(Key::End),
|
||||||
pancurses::Input::KeySEOL => Event::Refresh,
|
pancurses::Input::KeySEOL => Event::Refresh,
|
||||||
pancurses::Input::KeySExit => Event::Refresh,
|
pancurses::Input::KeySExit => Event::Refresh,
|
||||||
pancurses::Input::KeySFind => Event::Refresh,
|
pancurses::Input::KeySFind => Event::Refresh,
|
||||||
pancurses::Input::KeySHome => Event::Refresh,
|
pancurses::Input::KeySHome => Event::Shift(Key::Home),
|
||||||
pancurses::Input::KeySIC => Event::Refresh,
|
pancurses::Input::KeySIC => Event::Shift(Key::Insert),
|
||||||
pancurses::Input::KeySLeft => Event::Refresh,
|
pancurses::Input::KeySLeft => Event::Refresh,
|
||||||
pancurses::Input::KeySMessage => Event::Refresh,
|
pancurses::Input::KeySMessage => Event::Refresh,
|
||||||
pancurses::Input::KeySMove => Event::Refresh,
|
pancurses::Input::KeySMove => Event::Refresh,
|
||||||
pancurses::Input::KeySNext => Event::Refresh,
|
pancurses::Input::KeySNext => Event::Shift(Key::PageDown),
|
||||||
pancurses::Input::KeySOptions => Event::Refresh,
|
pancurses::Input::KeySOptions => Event::Refresh,
|
||||||
pancurses::Input::KeySPrevious => Event::Refresh,
|
pancurses::Input::KeySPrevious => Event::Shift(Key::PageUp),
|
||||||
pancurses::Input::KeySPrint => Event::Refresh,
|
pancurses::Input::KeySPrint => Event::Refresh,
|
||||||
pancurses::Input::KeySRedo => Event::Refresh,
|
pancurses::Input::KeySRedo => Event::Refresh,
|
||||||
pancurses::Input::KeySReplace => Event::Refresh,
|
pancurses::Input::KeySReplace => Event::Refresh,
|
||||||
@ -196,10 +195,9 @@ impl backend::Backend for Concrete {
|
|||||||
pancurses::Input::KeyEvent => Event::Refresh,
|
pancurses::Input::KeyEvent => Event::Refresh,
|
||||||
// TODO: mouse support
|
// TODO: mouse support
|
||||||
pancurses::Input::KeyMouse => Event::Refresh,
|
pancurses::Input::KeyMouse => Event::Refresh,
|
||||||
// TODO: not sure what those are
|
|
||||||
pancurses::Input::KeyA1 => Event::Refresh,
|
pancurses::Input::KeyA1 => Event::Refresh,
|
||||||
pancurses::Input::KeyA3 => Event::Refresh,
|
pancurses::Input::KeyA3 => Event::Refresh,
|
||||||
pancurses::Input::KeyB2 => Event::Refresh,
|
pancurses::Input::KeyB2 => Event::Key(Key::NumpadCenter),
|
||||||
pancurses::Input::KeyC1 => Event::Refresh,
|
pancurses::Input::KeyC1 => Event::Refresh,
|
||||||
pancurses::Input::KeyC3 => Event::Refresh,
|
pancurses::Input::KeyC3 => Event::Refresh,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user