Experiments with keyboard shortcuts

This commit is contained in:
Frederic Guillot
2015-01-30 23:11:30 -05:00
parent 746e1a4e3d
commit e1be338053
5 changed files with 87 additions and 41 deletions

View File

@@ -7,6 +7,17 @@ Kanboard.Board = (function() {
Kanboard.Popover(e, Kanboard.Init);
}
function keyboard_shortcuts()
{
Mousetrap.bind("n", function() {
Kanboard.OpenPopover(
$(".task-creation-popover").attr('href'),
Kanboard.Init
);
});
}
// Setup the board
function board_load_events()
{
@@ -250,6 +261,7 @@ Kanboard.Board = (function() {
Init: function() {
board_load_events();
filter_load_events();
keyboard_shortcuts();
}
};