diff options
author | alecpl <alec@alec.pl> | 2011-09-15 18:57:35 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-09-15 18:57:35 +0000 |
commit | 699a25a822276c12a0aa9253dd6a397c1b09899b (patch) | |
tree | 5b8e0543b8883311dd38d7e97d49b829792c1fd4 /program/js/common.js | |
parent | d43332a8a5d30f135f696fcdca1e7703af23cf6d (diff) |
- Disable message list keypress operations when CTRL key is pressed,
to workaround FF6 issue, where Ctrl+Pg(Up/Down) was changing list page
and browser tab)
- Fix multiselection with Ctrl+Up/Down keys
Diffstat (limited to 'program/js/common.js')
-rw-r--r-- | program/js/common.js | 10 |
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; }, /** |