diff options
| author | Phil Crosby | 2014-04-30 00:56:03 -0700 |
|---|---|---|
| committer | Phil Crosby | 2014-04-30 00:56:03 -0700 |
| commit | 4cfb7dd9e38c4d4e3c269952402b4d8161007e6f (patch) | |
| tree | 23148fcf08f482d9f81d28d5a6d9c7600c1260e6 /lib | |
| parent | c79b35114270ada790a564e1794d042dadf07356 (diff) | |
| parent | 63f0b24d35176e6f72429e6c4ed15b9282c6e21b (diff) | |
| download | vimium-4cfb7dd9e38c4d4e3c269952402b4d8161007e6f.tar.bz2 | |
Merge remote-tracking branch 'mrmr1993/openLinkInFGTab'
Conflicts:
content_scripts/link_hints.coffee
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dom_utils.coffee | 4 | ||||
| -rw-r--r-- | lib/keyboard_utils.coffee | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index 70e52a6c..dcdd5518 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -109,8 +109,8 @@ DomUtils = eventSequence = ["mouseover", "mousedown", "mouseup", "click"] for event in eventSequence mouseEvent = document.createEvent("MouseEvents") - mouseEvent.initMouseEvent(event, true, true, window, 1, 0, 0, 0, 0, modifiers.ctrlKey, false, false, - modifiers.metaKey, 0, null) + mouseEvent.initMouseEvent(event, true, true, window, 1, 0, 0, 0, 0, modifiers.ctrlKey, modifiers.altKey, + modifiers.shiftKey, modifiers.metaKey, 0, null) # Debugging note: Firefox will not execute the element's default action if we dispatch this click event, # but Webkit will. Dispatching a click on an input box does not seem to focus it; we do that separately element.dispatchEvent(mouseEvent) diff --git a/lib/keyboard_utils.coffee b/lib/keyboard_utils.coffee index df5bbbad..d2a843f9 100644 --- a/lib/keyboard_utils.coffee +++ b/lib/keyboard_utils.coffee @@ -1,6 +1,7 @@ KeyboardUtils = keyCodes: - { ESC: 27, backspace: 8, deleteKey: 46, enter: 13, space: 32, shiftKey: 16, f1: 112, f12: 123, tab: 9 } + { ESC: 27, backspace: 8, deleteKey: 46, enter: 13, space: 32, shiftKey: 16, ctrlKey: 17, f1: 112, + f12: 123, tab: 9 } keyNames: { 37: "left", 38: "up", 39: "right", 40: "down" } |
