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

Remove trailing whitespace.

This commit is contained in:
Doug Kearns
2009-06-08 23:38:08 +10:00
parent 3bfa2d39d5
commit 3fde53ab9d

View File

@@ -1038,7 +1038,7 @@ function Events() //{{{
evt_obj.charCode = keyname.charCodeAt(0); evt_obj.charCode = keyname.charCodeAt(0);
} }
else if (keyname == "nop") else if (keyname == "nop")
{ {
evt_obj.liberatorString = "<Nop>"; evt_obj.liberatorString = "<Nop>";
} }
@@ -1146,7 +1146,7 @@ function Events() //{{{
{ {
key = String.fromCharCode(event.charCode); key = String.fromCharCode(event.charCode);
if (key in key_code) if (key in key_code)
{ {
// a named charcode key (<Space> and <lt>) space can be shifted, <lt> must be forced // a named charcode key (<Space> and <lt>) space can be shifted, <lt> must be forced
if ((key.match(/^\s$/) && event.shiftKey) || event.liberatorShift) if ((key.match(/^\s$/) && event.shiftKey) || event.liberatorShift)
@@ -1154,13 +1154,13 @@ function Events() //{{{
key = code_key[key_code[key]]; key = code_key[key_code[key]];
} }
else else
{ {
// a shift modifier is only allowed if the key is alphabetical and used in a C-A-M- mapping in the uppercase, // a shift modifier is only allowed if the key is alphabetical and used in a C-A-M- mapping in the uppercase,
// or if the shift has been forced for a non-alphabetical character by the user while :map-ping // or if the shift has been forced for a non-alphabetical character by the user while :map-ping
if ((key != key.toLowerCase() && (event.ctrlKey || event.altKey || event.metaKey)) || event.liberatorShift) if ((key != key.toLowerCase() && (event.ctrlKey || event.altKey || event.metaKey)) || event.liberatorShift)
modifier += "S-"; modifier += "S-";
else if (modifier.length == 0) else if (modifier.length == 0)
return key; return key;
} }
} }