fix F2 keypress bug

main
Mariela Michalek 2015-03-18 17:38:41 -03:00
parent f7d58787c8
commit 298efc4d20
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ mindplot.DesignerKeyboard = new Class({
}
);
this.addShortcut(
['f2'],function() {
['f2'],function(event) {
event.stopPropagation();
event.preventDefault();
var node = model.selectedTopic();
if (node) {
node.showTextEditor();