From 18d5b9f6c44f6245f01a19471a475d6fb9775fe9 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Sun, 26 Feb 2012 23:47:57 -0500 Subject: Revert "Exit implicit insert mode only upon tab switch." This reverts commit 469acff29be41e60eb8e1c24f007d435711d2b50. Conflicts: vimiumFrontend.js --- background_page.html | 6 ------ 1 file changed, 6 deletions(-) (limited to 'background_page.html') diff --git a/background_page.html b/background_page.html index 90c628dc..aca4206b 100644 --- a/background_page.html +++ b/background_page.html @@ -14,7 +14,6 @@ var singleKeyCommands = []; var focusedFrame = null; var framesForTab = {}; - var lastActiveTabIds = {}; // Keys are either literal characters, or "named" - for example (alt+b), (left arrow) or // This regular expression captures two groups: the first is a named key, the second is the remainder of @@ -273,10 +272,6 @@ chrome.tabs.onSelectionChanged.addListener(function(tabId, selectionInfo) { if (selectionChangedHandlers.length > 0) { selectionChangedHandlers.pop().call(); } - - if (lastActiveTabIds[selectionInfo.windowId] !== undefined) - chrome.tabs.sendRequest(lastActiveTabIds[selectionInfo.windowId], { name: "exitImplicitInsertMode" }); - lastActiveTabIds[selectionInfo.windowId] = tabId; }); function repeatFunction(func, totalCount, currentCount, frameId) { @@ -398,7 +393,6 @@ chrome.windows.onRemoved.addListener(function(windowId) { delete tabQueue[windowId]; - delete lastActiveTabIds[windowId]; }); function restoreTab(callback) { -- cgit v1.2.3