From ca0622f1ebbe79230bedf3a1b2bf716f9d66b840 Mon Sep 17 00:00:00 2001 From: ilya Date: Tue, 9 Mar 2010 20:02:37 -0800 Subject: Fix a bug where if you add a mapping, save, and then remove it -- it won't get actually unmapped. --- options.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'options.html') diff --git a/options.html b/options.html index 70b8d702..9097c76f 100644 --- a/options.html +++ b/options.html @@ -75,7 +75,10 @@ var postSaveHooks = { "keyMappings": function (value) { - chrome.extension.getBackgroundPage().parseCustomKeyMappings(value); } + backgroundPage = chrome.extension.getBackgroundPage(); + backgroundPage.clearKeyMappingsAndSetDefaults(); + backgroundPage.parseCustomKeyMappings(value); + } }; function initializeOptions() { -- cgit v1.2.3