[Python-Dev] [Python-checkins] r88904 - tracker/instances/python-dev/html/issue.item.js
Ezio Melotti
ezio.melotti at gmail.com
Fri Oct 7 09:46:12 CEST 2011
Hi,
On 07/10/2011 10.02, ezio.melotti wrote:
> Author: ezio.melotti
> Date: Fri Oct 7 09:02:07 2011
> New Revision: 88904
>
> Log:
> #422: add keyword shortcuts to navigate through the messages and to reply.
>
I added keyboard shortcut to navigate through the messages in the
tracker (yes, keyboard, not keyword, that's a typo :).
There are two groups of shortcuts available:
* mnemonics:
f: first message;
p: previous message;
n: next message;
l: last message;
r: reply (jumps on the comment field and focuses it);
* vim-style:
h: left (first message);
k: up (previous message);
j: down (next message);
l: right (last message);
i: insert-mode (jumps on the comment field and focuses it);
esc: normal-mode (unfocus the field and re-enables the commands);
The two groups don't conflict with each other, so all the keys always work.
The shortcuts don't require key combinations like ctrl+f/alt+f -- 'f' is
enough.
The shortcuts are available only in the issue page, and not in the main
page with the list of issues.
The shortcuts use javascript, so they won't work if js is disabled.
The issue is tracked here:
http://psf.upfronthosting.co.za/roundup/meta/issue422
If you have any problem/feedback reply either there or here.
A few notes about the change:
* The 'end' key doesn't jump to the last message anymore.
The normal browser behavior (i.e. go to the end of the page) is now
restored.
Use 'l' (last) to jump to the last message.
* The patch conflicts with the browser 'find-as-you-type' if the
first letter is a shortcut.
If you are using the find-as-you-type, use ctrl+f instead.
* f/l *always* jump to the first/last message, regardless of the
position of the page.
p/n use an index that does *not* change when you scroll, and do
nothing on the first/last message respectively.
If you are at the second-last message, scroll to the top, and hit
'n', you will still jump to the last message.
If you are at the last message, scroll to the top, and hit 'n' the
page won't scroll (you can use 'l' instead).
* I added the shortcuts to the left sidebar but I plan to move them
to the devguide eventually.
* It might be useful to add a shortcut to submit.
's' would be a good candidate, but it might be hit accidentally (an
"are you sure?" popup might solve this).
ctrl+enter/ctrl+s might be better, but they might conflict with the
browser commands.
* While replying (i.e. while writing in the comment textarea), the
shortcuts are disabled.
You can hit ESC to unfocus the textarea and then use them. You can
then press 'r' again to continue editing.
Best Regards,
Ezio Melotti
More information about the Python-Dev
mailing list