diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-12-09 21:04:22 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-12-09 21:35:22 +1100 |
| commit | 64f1c314016ef3d4652ed9c1615ae3bac7bd07b1 (patch) | |
| tree | 609576400927b22cd8c493841f4ace41c230d9ea /src/keys.hh | |
| parent | 1670a7514a2e23ab9d0eb1b2611184c9eb3f00b1 (diff) | |
Refactor parsing of keys and introduce a builtin key parser mode
By setting the ncurses_builtin_key_parser ui_option to true, we
can disable ncurses parsing of key strokes to get less portable
parsing but support for more complex modifiers.
Diffstat (limited to 'src/keys.hh')
| -rw-r--r-- | src/keys.hh | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/keys.hh b/src/keys.hh index 57b4fffb..a7684f22 100644 --- a/src/keys.hh +++ b/src/keys.hh @@ -109,10 +109,6 @@ constexpr Key ctrl(Key key) { return { key.modifiers | Key::Modifiers::Control, key.key }; } -constexpr Key shift_alt(Key k) { return shift(alt(k)); } -constexpr Key shift_ctrl(Key k) { return shift(ctrl(k)); } -constexpr Key alt_ctrl(Key k) { return alt(ctrl(k)); } -constexpr Key shift_alt_ctrl(Key k) { return shift(alt(ctrl(k))); } constexpr Codepoint encode_coord(DisplayCoord coord) { return (Codepoint)(((int)coord.line << 16) | ((int)coord.column & 0x0000FFFF)); } |
