From b9c5fcc9f5d0fb72e851a3b2c8612176ed785673 Mon Sep 17 00:00:00 2001 From: Mariela Michalek Date: Wed, 18 Mar 2015 17:38:41 -0300 Subject: [PATCH] fix F2 keypress bug --- mindplot/src/main/javascript/DesignerKeyboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mindplot/src/main/javascript/DesignerKeyboard.js b/mindplot/src/main/javascript/DesignerKeyboard.js index aaba0d04..c66f9fbf 100644 --- a/mindplot/src/main/javascript/DesignerKeyboard.js +++ b/mindplot/src/main/javascript/DesignerKeyboard.js @@ -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();