summaryrefslogtreecommitdiff
path: root/program/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js/common.js')
-rw-r--r--program/js/common.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/program/js/common.js b/program/js/common.js
index c5f466ae7..0011feaa0 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -171,14 +171,12 @@ get_modifier: function(e)
var opcode = 0;
e = e || window.event;
- if (bw.mac && e) {
+ if (bw.mac && e)
opcode += (e.metaKey && CONTROL_KEY) + (e.shiftKey && SHIFT_KEY);
- return opcode;
- }
- if (e) {
+ else if (e)
opcode += (e.ctrlKey && CONTROL_KEY) + (e.shiftKey && SHIFT_KEY);
- return opcode;
- }
+
+ return opcode;
},
/**