diff options
| -rw-r--r-- | background_scripts/commands.coffee | 3 | ||||
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 1 | ||||
| -rw-r--r-- | pages/test_ui_component.coffee | 8 | ||||
| -rw-r--r-- | pages/test_ui_component.html | 11 |
4 files changed, 1 insertions, 22 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 63b870cc..585ef572 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -91,7 +91,6 @@ Commands = commandGroups: pageNavigation: ["scrollDown", - "activateTestUIComponent", "scrollUp", "scrollLeft", "scrollRight", @@ -253,7 +252,6 @@ defaultKeyMappings = "m": "Marks.activateCreateMode" "`": "Marks.activateGotoMode" - "D": "activateTestUIComponent" # This is a mapping of: commandIdentifier => [description, options]. @@ -265,7 +263,6 @@ commandDescriptions = scrollUp: ["Scroll up"] scrollLeft: ["Scroll left"] scrollRight: ["Scroll right"] - activateTestUIComponent: ["UI component test"] scrollToTop: ["Scroll to the top of the page", { noRepeat: true }] scrollToBottom: ["Scroll to the bottom of the page", { noRepeat: true }] diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 114786e8..2de08c39 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -198,6 +198,7 @@ window.addEventListener "focus", -> # initializeOnDomReady = -> enterInsertModeIfElementIsFocused() if isEnabledForUrl + # Tell the background page we're in the dom ready state. chrome.runtime.connect({ name: "domReady" }) CursorHider.init() diff --git a/pages/test_ui_component.coffee b/pages/test_ui_component.coffee deleted file mode 100644 index e140fb14..00000000 --- a/pages/test_ui_component.coffee +++ /dev/null @@ -1,8 +0,0 @@ -UIComponentServer.registerHandler (event) -> - document.body.innerHTML = event.data - -window.addEventListener "keydown", (event) -> - if KeyboardUtils.isEscape event - UIComponentServer.postMessage "hide" - else - UIComponentServer.postMessage event.keyCode diff --git a/pages/test_ui_component.html b/pages/test_ui_component.html deleted file mode 100644 index 06af346c..00000000 --- a/pages/test_ui_component.html +++ /dev/null @@ -1,11 +0,0 @@ -<html> - <head> - <title>Test</title> - <script type="text/javascript" src="../lib/keyboard_utils.js"></script> - <script type="text/javascript" src="ui_component_server.js"></script> - <script type="text/javascript" src="test_ui_component.js"></script> - <link rel="stylesheet" type="text/css" href="../content_scripts/vimium.css" /> - </head> - <body> - </body> -</html> |
