Skip to content

Commit

Permalink
fix #45 again
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatao Li committed Aug 14, 2019
1 parent 56604a9 commit fd39a12
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions neovim/neovim.model.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <FF> 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"
Expand Down Expand Up @@ -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, _, _, _)
Expand Down

0 comments on commit fd39a12

Please sign in to comment.