From 07dcf2f742d4700d1b4d69b92ebaf3fced3d5c58 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Tue, 21 Mar 2017 21:25:23 +0100 Subject: [PATCH] Use `vim.markPageInteraction()` instead of direct mutation ... of `vim.state.hasInteraction`. --- extension/lib/events-frame.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/lib/events-frame.coffee b/extension/lib/events-frame.coffee index bd433f9..47eb44e 100644 --- a/extension/lib/events-frame.coffee +++ b/extension/lib/events-frame.coffee @@ -229,7 +229,7 @@ class FrameEventManager # event below). if target == @vim.content.document if @vim.state.shouldRefocus - @vim.state.hasInteraction = true + @vim.markPageInteraction(true) # When Firefox is re-focused after using a keyboard shortcut to switch # keyboard layout in GNOME, _two_ focus events for the document are # triggered, about 50ms apart. Therefore, reset the `shouldRefocus` @@ -238,7 +238,7 @@ class FrameEventManager @vim.state.shouldRefocus = false ), prefs.get('refocus_timeout')) else - @vim.state.hasInteraction = false + @vim.markPageInteraction(false) return if utils.isTextInputElement(target) -- 2.39.3