1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 08:42:28 +01:00

keyToString -> event.toString()

This commit is contained in:
Martin Stubenschrott
2007-06-20 14:07:18 +00:00
parent 89d629e5e2
commit 3d08bb8dc3
2 changed files with 99 additions and 196 deletions

View File

@@ -264,7 +264,7 @@ function CommandLine ()
else
{
//event.stopPropagation(); // XXX: doesnt seem to work
//event.preventDefault(); // so we need to use the hack
//event.preventDefault(); // so we need to use the hack below --mst
// NOTE: echo_allowed is a misleading name here, actually this flag is set
// so that we don't save a history entry if the user clicks into the text field
@@ -280,7 +280,7 @@ function CommandLine ()
}
else if(event.type == "keypress")
{
var key = keyToString(event);
var key = event.toString();
/* user pressed ENTER to carry out a command */
if (key == "<Return>" || key == "<C-j>" || key == "<C-m>")
{