Changeset 5221 in subversion
- Timestamp:
- Sep 15, 2011 2:57:35 PM (20 months ago)
- Location:
- trunk/roundcubemail/program/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r5200 r5221 87 87 88 88 this.buttons[command].push(button_prop); 89 89 90 90 if (this.loaded) 91 91 init_button(command, button_prop); … … 1523 1523 this.msglist_keypress = function(list) 1524 1524 { 1525 if (list.modkey == CONTROL_KEY) 1526 return; 1527 1525 1528 if (list.key_pressed == list.ENTER_KEY) 1526 1529 this.command('show'); 1527 else if (list.key_pressed == list.DELETE_KEY) 1528 this.command('delete'); 1529 else if (list.key_pressed == list.BACKSPACE_KEY) 1530 else if (list.key_pressed == list.DELETE_KEY || list.key_pressed == list.BACKSPACE_KEY) 1530 1531 this.command('delete'); 1531 1532 else if (list.key_pressed == 33) … … 2497 2498 else { 2498 2499 // if shift was pressed delete it immediately 2499 if (list && list. shiftkey) {2500 if (list && list.modkey == SHIFT_KEY) { 2500 2501 if (confirm(this.get_label('deletemessagesconfirm'))) 2501 2502 this.permanently_remove_messages(); -
trunk/roundcubemail/program/js/common.js
r5006 r5221 172 172 e = e || window.event; 173 173 174 if (bw.mac && e) {174 if (bw.mac && e) 175 175 opcode += (e.metaKey && CONTROL_KEY) + (e.shiftKey && SHIFT_KEY); 176 return opcode; 177 } 178 if (e) { 176 else if (e) 179 177 opcode += (e.ctrlKey && CONTROL_KEY) + (e.shiftKey && SHIFT_KEY); 180 return opcode; 181 }178 179 return opcode; 182 180 }, 183 181 -
trunk/roundcubemail/program/js/list.js
r4750 r5221 37 37 38 38 this.subject_col = -1; 39 this. shiftkey = false;39 this.modkey = 0; 40 40 this.multiselect = false; 41 41 this.multiexpand = false; … … 649 649 if (!with_mouse) 650 650 this.highlight_row(id, true); 651 break; 651 break; 652 652 653 653 case CONTROL_SHIFT_KEY: … … 963 963 switch (keyCode) { 964 964 case 40: 965 case 38: 965 case 38: 966 966 case 63233: // "down", in safari keypress 967 967 case 63232: // "up", in safari keypress … … 977 977 var ret = this.use_plusminus_key(keyCode, mod_key); 978 978 this.key_pressed = keyCode; 979 this.modkey = mod_key; 979 980 this.triggerEvent('keypress'); 981 this.modkey = 0; 980 982 return ret; 981 983 case 36: // Home … … 986 988 return rcube_event.cancel(e); 987 989 default: 988 this.shiftkey = e.shiftKey;989 990 this.key_pressed = keyCode; 991 this.modkey = mod_key; 990 992 this.triggerEvent('keypress'); 991 // reset shiftkey flag, we need it only for registered events 992 this.shiftkey = false; 993 this.modkey = 0; 993 994 994 995 if (this.key_pressed == this.BACKSPACE_KEY) … … 1045 1046 1046 1047 if (new_row) { 1047 this.select_row(new_row.uid, mod_key, true);1048 this.select_row(new_row.uid, mod_key, false); 1048 1049 this.scrollto(new_row.uid); 1049 1050 }
Note: See TracChangeset
for help on using the changeset viewer.
