Merge branch 'master' of http://github.com/jo-he/kakoune
This commit is contained in:
commit
b83c09509e
|
@ -132,7 +132,10 @@ be used:
|
||||||
*<pageup>*, *<pagedown>*, *<home>*, *<end>*::
|
*<pageup>*, *<pagedown>*, *<home>*, *<end>*::
|
||||||
The usual cursor-movement keys.
|
The usual cursor-movement keys.
|
||||||
|
|
||||||
*<f1>*, *<f2>*, ...*<f12>*::
|
*<ins>*::
|
||||||
|
The Insert key.
|
||||||
|
|
||||||
|
*<F1>*, *<F2>*, ...*<F12>*::
|
||||||
Function keys.
|
Function keys.
|
||||||
|
|
||||||
NOTE: Although Kakoune allows many key combinations to be mapped, not every
|
NOTE: Although Kakoune allows many key combinations to be mapped, not every
|
||||||
|
|
|
@ -74,6 +74,7 @@ static constexpr KeyAndName keynamemap[] = {
|
||||||
{ "pagedown", Key::PageDown },
|
{ "pagedown", Key::PageDown },
|
||||||
{ "home", Key::Home },
|
{ "home", Key::Home },
|
||||||
{ "end", Key::End },
|
{ "end", Key::End },
|
||||||
|
{ "ins", Key::Insert },
|
||||||
{ "del", Key::Delete },
|
{ "del", Key::Delete },
|
||||||
{ "plus", '+' },
|
{ "plus", '+' },
|
||||||
{ "minus", '-' },
|
{ "minus", '-' },
|
||||||
|
|
|
@ -50,6 +50,7 @@ struct Key
|
||||||
PageDown,
|
PageDown,
|
||||||
Home,
|
Home,
|
||||||
End,
|
End,
|
||||||
|
Insert,
|
||||||
Tab,
|
Tab,
|
||||||
F1,
|
F1,
|
||||||
F2,
|
F2,
|
||||||
|
|
|
@ -606,6 +606,8 @@ Optional<Key> NCursesUI::get_next_key()
|
||||||
case KEY_SHOME: return shift(Key::Home);
|
case KEY_SHOME: return shift(Key::Home);
|
||||||
case KEY_END: return {Key::End};
|
case KEY_END: return {Key::End};
|
||||||
case KEY_SEND: return shift(Key::End);
|
case KEY_SEND: return shift(Key::End);
|
||||||
|
case KEY_IC: return {Key::Insert};
|
||||||
|
case KEY_SIC: return shift(Key::Insert);
|
||||||
case KEY_BTAB: return shift(Key::Tab);
|
case KEY_BTAB: return shift(Key::Tab);
|
||||||
case KEY_RESIZE: return resize(dimensions());
|
case KEY_RESIZE: return resize(dimensions());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user