Opened 3 years ago
Closed 20 months ago
#1486878 closed Feature Patches (wontfix)
left and right arrow key to navigate in list
| Reported by: | lacri | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | later |
| Component: | Client Scripts | Version: | 0.4-beta |
| Severity: | normal | Keywords: | |
| Cc: |
Description
to add list navigating by pressing left or right arrow key
pressing left arrow key next prev site
and right arrow key navigate to next site on E-Mail List
add this to list.js in key_press: function(e)
case 37: // prev
rcmail.command('previouspage');
return rcube_event.cancel(e);
case 39: // next
rcmail.command('nextpage');
return rcube_event.cancel(e);
i think its a little missing part :)
Change History (5)
comment:1 Changed 3 years ago by lacri
comment:2 Changed 3 years ago by alec
rcmail object shouldn't be used inside of rcube_list_widget. So, fix will be not so simple.
comment:3 Changed 3 years ago by lacri
ok, I think its a very useful extension I've long been missing, and gets more usability.
So why not use it at this point ?
comment:4 Changed 3 years ago by alec
Default action for keypress in list widget is triggering of such event. So, we could bind a rcmail function to this event.
comment:5 Changed 20 months ago by alec
- Resolution set to wontfix
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

small optimization
in key_press: function(e)
replace
if (this.focused != true)
with
if (this.focused != true && keyCode != 39 && keyCode != 37)
and move this
var keyCode = rcube_event.get_keycode(e);
on top in key_press: function(e)
The Effect is you must not select a message to navigate with arrow keys between the list sites