From fd39a12e1e3be5cbce0acdde1e733ea7a8daa41f Mon Sep 17 00:00:00 2001 From: Yatao Li Date: Wed, 14 Aug 2019 20:43:51 +0800 Subject: [PATCH] fix #45 again --- neovim/neovim.model.fs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/neovim/neovim.model.fs b/neovim/neovim.model.fs index f3f34c0..00b769d 100644 --- a/neovim/neovim.model.fs +++ b/neovim/neovim.model.fs @@ -119,14 +119,14 @@ module ModelImpl = let (|Repeat|Special|Normal|ImeEvent|TextInput|Unrecognized|) (x: InputEvent) = match x with // | Key(HasFlag(InputModifiers.Control), Key.H) + // | Key(HasFlag(InputModifiers.Control), Key.I) + // | Key(HasFlag(InputModifiers.Control), Key.J) + // | Key(HasFlag(InputModifiers.Control), Key.M) // | Key(HasFlag(InputModifiers.Control), Key.Oem4) // Oem4 is '[' // | Key(HasFlag(InputModifiers.Control), Key.L) // if ^L is sent as then neovim discards the key. | Key(_, Key.Back) -> Special "BS" - | Key(HasFlag(InputModifiers.Control), Key.I) | Key(_, Key.Tab) -> Special "Tab" - | Key(HasFlag(InputModifiers.Control), Key.J) | Key(_, Key.LineFeed) -> Special "NL" - | Key(HasFlag(InputModifiers.Control), Key.M) | Key(_, Key.Return) -> Special "CR" | Key(_, Key.Escape) -> Special "Esc" | Key(_, Key.Space) -> Special "Space" @@ -226,9 +226,6 @@ module ModelImpl = | Key.D4 | Key.D5 | Key.D6 | Key.D7 | Key.D8 | Key.D9)) -> (|ModifiersPrefix|_|) <| InputEvent.Key(m &&& (~~~InputModifiers.Shift), x) - // -------------- C-x special forms do not carry control modifiers - | Key(m & HasFlag(InputModifiers.Control), x & (Key.H | Key.I | Key.J | Key.M)) - -> (|ModifiersPrefix|_|) <| InputEvent.Key(m &&& (~~~InputModifiers.Control), x) | Key(m, _) | MousePress(m, _, _, _, _) | MouseRelease(m, _, _, _)