Enable keyboard shortcut inside textarea and minor fixes

This commit is contained in:
Frederic Guillot
2015-02-15 21:54:21 -05:00
parent 353117f44e
commit b2c95a25e3
9 changed files with 19 additions and 17 deletions

View File

@@ -179,7 +179,7 @@ var Kanboard = (function() {
window.setInterval(Kanboard.CheckSession, 60000);
// Keyboard shortcuts
Mousetrap.bind("mod+enter", function() {
Mousetrap.bindGlobal("mod+enter", function() {
$("form").submit();
});

View File

@@ -15,7 +15,7 @@ Kanboard.Board = (function() {
Mousetrap.bind("n", function() {
Kanboard.OpenPopover(
$(".task-creation-popover").attr('href'),
$("#board").data("task-creation-url"),
Kanboard.InitAfterAjax
);
});