Skip to content

Commit

Permalink
[#164] Add alternative hotkeys: ALT + U, ALT + N, ALT + S, CTRL + S.
Browse files Browse the repository at this point in the history
In this way all major browsers have at least some hotkey combination available.
  • Loading branch information
jaragunde committed Feb 27, 2013
1 parent 806de5d commit 7aa6754
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
9 changes: 6 additions & 3 deletions docs/user/tasks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,14 @@ Hotkeys
Some hotkeys are available to increase the productivity for keyboard users:

CTRL + S
Save changes.
Save changes. Some browsers don't allow to overwrite the behaviour of this
key combination (e.g. Epiphany), so you can use ALT + S instead.

CTRL + U
CTRL + N
Create a new task. The cursor will be placed in the first field of the new
task.
task. Some browsers don't allow to overwrite the behaviour of this
key combination (e.g. Chrome), so you can use ALT + N, CTRL + U or ALT + U
instead.

CTRL + number
The cursor will be placed in the first field of the first, second, third, etc.
Expand Down
20 changes: 16 additions & 4 deletions web/tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1152,16 +1152,28 @@ function saveTasks() {
key: 's',
ctrl: true,
stopEvent: true,
handler: function () {
saveTasks();
}
handler: saveTasks,
});
new Ext.KeyMap(document, {
//alternate shortcut for Epiphany
key: 's',
alt: true,
stopEvent: true,
handler: saveTasks,
});
new Ext.KeyMap(document, {
key: 'u',
key: 'un',
ctrl: true,
stopEvent: true,
handler: newTask
});
new Ext.KeyMap(document, {
//alternate shortcut for Epiphany
key: 'un',
alt: true,
stopEvent: true,
handler: newTask
});
new Ext.KeyMap(document, {
key: '123456789',
ctrl: true,
Expand Down

0 comments on commit 7aa6754

Please sign in to comment.