1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 04:37:58 +01:00

enable vimperator.events.toString() to return keysyms for mouse events

This commit is contained in:
Doug Kearns
2007-09-17 05:37:29 +00:00
parent 6ca297c431
commit 28e15cb66c
3 changed files with 58 additions and 29 deletions

View File

@@ -631,10 +631,6 @@ function CommandLine() //{{{
var key = vimperator.events.toString(event);
// TODO: move to events.toString()
if (event.type == "click" && event.button == 0)
key = "<LeftMouse>"
switch (key)
{
case ":":
@@ -680,6 +676,9 @@ function CommandLine() //{{{
break;
case "<LeftMouse>":
case "<A-LeftMouse>":
case "<C-LeftMouse>":
case "<S-LeftMouse>":
if (/^(end|more(-help)?)-prompt$/.test(event.target.id))
; // fall through
else