|
|
|
@ -36,7 +36,7 @@ function rcube_list_widget(list, p)
|
|
|
|
|
this.colcount = 0;
|
|
|
|
|
|
|
|
|
|
this.subject_col = -1;
|
|
|
|
|
this.shiftkey = false;
|
|
|
|
|
this.modkey = 0;
|
|
|
|
|
this.multiselect = false;
|
|
|
|
|
this.multiexpand = false;
|
|
|
|
|
this.multi_selecting = false;
|
|
|
|
@ -976,7 +976,9 @@ key_press: function(e)
|
|
|
|
|
rcube_event.cancel(e);
|
|
|
|
|
var ret = this.use_plusminus_key(keyCode, mod_key);
|
|
|
|
|
this.key_pressed = keyCode;
|
|
|
|
|
this.modkey = mod_key;
|
|
|
|
|
this.triggerEvent('keypress');
|
|
|
|
|
this.modkey = 0;
|
|
|
|
|
return ret;
|
|
|
|
|
case 36: // Home
|
|
|
|
|
this.select_first(mod_key);
|
|
|
|
@ -985,11 +987,10 @@ key_press: function(e)
|
|
|
|
|
this.select_last(mod_key);
|
|
|
|
|
return rcube_event.cancel(e);
|
|
|
|
|
default:
|
|
|
|
|
this.shiftkey = e.shiftKey;
|
|
|
|
|
this.key_pressed = keyCode;
|
|
|
|
|
this.modkey = mod_key;
|
|
|
|
|
this.triggerEvent('keypress');
|
|
|
|
|
// reset shiftkey flag, we need it only for registered events
|
|
|
|
|
this.shiftkey = false;
|
|
|
|
|
this.modkey = 0;
|
|
|
|
|
|
|
|
|
|
if (this.key_pressed == this.BACKSPACE_KEY)
|
|
|
|
|
return rcube_event.cancel(e);
|
|
|
|
@ -1044,7 +1045,7 @@ use_arrow_key: function(keyCode, mod_key)
|
|
|
|
|
new_row = this.get_prev_row();
|
|
|
|
|
|
|
|
|
|
if (new_row) {
|
|
|
|
|
this.select_row(new_row.uid, mod_key, true);
|
|
|
|
|
this.select_row(new_row.uid, mod_key, false);
|
|
|
|
|
this.scrollto(new_row.uid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|