From bbe9c00bdbbf6f076c5feb35e64b6e0b5c6bb6dd Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Wed, 24 Feb 2016 15:32:45 +0100 Subject: [PATCH] Allow to temporarily enter Ignore mode based on focusType Currently supports the wasavi extension and CodeMirror's Vim mode. Fixes #532. --- documentation/api.md | 3 +++ documentation/options.md | 23 +++++++++++++++++++++++ extension/lib/events.coffee | 2 +- extension/lib/modes.coffee | 10 +++++++--- extension/lib/utils.coffee | 22 ++++++++++++++++++++++ extension/lib/vim.coffee | 10 +++++++++- 6 files changed, 65 insertions(+), 5 deletions(-) diff --git a/documentation/api.md b/documentation/api.md index e657f8d..0d125c4 100644 --- a/documentation/api.md +++ b/documentation/api.md @@ -550,6 +550,9 @@ A `match` object has the following properties: following values, depending on what kind of _element_ is focused and which _key_ was pressed: + - `'ignore'`: element: some kind of Vim-style editor. VimFx automatically + enters Ignore mode when this focus type is encountered. key: any pressed + key. - `'editable'`: element: some kind of text input, a `