phpreport
phpreport copied to clipboard
Improvements for keyboard users
[Trac import] Reported by: jdiggs Original date: Monday, 02 January 2012 20:56
Using !PhpReport via keyboard rather than mouse poses a number of challenges. Instead of ticket-spamming, I'll list them in this ticket for consideration and let you handle splitting things into separate tickets as you deem appropriate.
- The button to collapse/expand a task does not seem to be keyboard focusable.
- No focus rectangles (or any other visual change) appear on the pressable/toggleable widgets or the menus at the top, which makes it really hard to know where you are. This also seems to be the case for the calendar, though in that case the URI shown at the bottom of the window at least makes it possible to figure out where you are.
- If a bunch of tasks are present for a given day, there's no way to quickly jump to a given task.
- Having the days in the calendar be at or near the top of the Tab order seems less than ideal.
- It appears that the menus at the top grab focus and never give it back when Escape is pressed to close the menu.
With respect to item 3, possible solutions would include:
a. When a page with tasks loads, start with each task collapsed. Let the user uncollapse the task of interest to view/edit an existing task.
b. Add access keys to jump amongst tasks (e.g. '1' for the first task, '2' for the second, and so on. This choice should minimize the potential for shortcut collision with a browser's menu, an assistive technology's commands, etc.)
[Trac import] Comment by: aperez Original date: Monday, 20 February 2012 22:38
By the way, a complete solution as proposed in the ticket description would be better, but having at least shortcuts for the “New Task” and “Save” buttons would make !PhpReport much more pleasant to use without a mouse (for the most usual fields, it is more-or-less possible to navigate the tasks view using <Tab> and <S-Tab>).
[Trac import] Comment by: jaragunde Original date: Thursday, 24 January 2013 13:35
Replying to [comment:1 aperez]:
By the way, a complete solution as proposed in the ticket description would be better, but having at least shortcuts for the “New Task” and “Save” buttons would make !PhpReport much more pleasant to use without a mouse
I've tried to implement it. I have CTRL + S working for save, but CTRL + N cannot be captured by !JavaScript in certain browsers (FF allows it, Chrome doesn't). What do you think would be a suitable alternative for that shortcut?
[Trac import] Comment by: jaragunde Original date: Friday, 01 February 2013 17:52
Commited three patches to address some of the mentioned issues:
commit be8e676523eb268948c101603ccd17177e1c5981
Author: Jacobo Aragunde Pérez <[email protected]>
Date: Fri Feb 1 13:34:47 2013 +0100
[#164] Add CTRL + number shortcut to change between tasks.
If you were in a combo box and change to another task with this shortcut, the
combo won't collapse. This is a known issue in the framework.
commit 6d7a91a311b2118b373883f20750ad92904421da
Author: Jacobo Aragunde Pérez <[email protected]>
Date: Fri Feb 1 10:40:39 2013 +0100
[#164] Add CTRL + S shortcut for save tasks.
I had to change how the task fields save their content into the Store.
Until now they were saved when the focus changed, so it won't work if the focus
is inside a modified field when you press CTRL+S.
Different solutions had to be implemented for every field type.
commit 8678a8df05891849095f93d90b88dc39f2edaed3
Author: Jacobo Aragunde Pérez <[email protected]>
Date: Fri Feb 1 09:38:08 2013 +0100
[#164] Add CTRL + U shortcut for new task.
[Trac import] Comment by: jaragunde Original date: Monday, 11 February 2013 19:45
commit 08a9b3220aa6effc67dbbd17f5708b80b9beb9b6
Author: Jacobo Aragunde Pérez <[email protected]>
Date: Mon Feb 11 16:22:58 2013 +0100
[#164] Add hotkeys list to the user documentation
[Trac import] Comment by: jaragunde Original date: Monday, 25 February 2013 13:33
CTRL + U is not allowed to be used by JS scripts in Epiphany. I would need an alternative shortcut.
[Trac import] Comment by: jaragunde Original date: Monday, 25 February 2013 13:35
CTRL + S is neither allowed in Epiphany. However, it is allowed when Epi works in webapp mode (no frame nor menus).
[Trac import] Comment by: jdiggs Original date: Monday, 25 February 2013 14:48
Could you use Alt instead of Ctrl? Alt is typically the modifier paired with the underlined letter in mnemonics for widgets.
[Trac import] Comment by: jaragunde Original date: Wednesday, 27 February 2013 19:18
commit 7aa6754d04d1e747fcffb5425f56a5f9819d0e20
Author: Jacobo Aragunde Pérez <[email protected]>
Date: Wed Feb 27 12:50:21 2013 +0100
[#164] Add alternative hotkeys: ALT + U, ALT + N, ALT + S, CTRL + S.
In this way all major browsers have at least some hotkey combination available.
New commit, reviewed on #598:
commit 41f0f61a78a93d74705e7f866b744858b398584e
Author: Jacobo Aragunde Pérez <[email protected]>
Date: Fri Sep 9 08:44:23 2022 +0200
[#164] Use alt+shift+number to switch tasks.
The hotkeys ctrl+number are used in Chrome (and Edge) to switch tabs.
It's been suggested to implement the combination ctrl+up/down to switch to the previous/next task. As there aren't any numbers representing the tasks, it makes more sense than number-based hotkeys.
Potential conflict: ctrl+up/down enables paragraph navigation on text areas. A possible implementation could be respecting edit field navigation, but just jump to next entry or previous entry when the cursor is at start or end, or outside the text area.
We are in the process of rewriting the frontend for tasks. Any outstanding bugs and enhancements for the old interface will be taken into account as we implement the new design.