Change name of action key

This commit is contained in:
Sophie Mori 2016-09-01 17:17:23 -04:00
parent aff667ea54
commit 6d2fd44931

View File

@ -109,8 +109,8 @@ public class DataResultTopComponent extends TopComponent implements DataResult,
setTitle(title); // set the title
setName(title);
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_B, InputEvent.CTRL_MASK), "addTag");
getActionMap().put("addTag", new BookmarkFileAction());
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_B, InputEvent.CTRL_MASK), "addBookmarkTag");
getActionMap().put("addBookmarkTag", new BookmarkFileAction());
putClientProperty(TopComponent.PROP_CLOSING_DISABLED, isMain); // set option to close compoment in GUI
putClientProperty(TopComponent.PROP_MAXIMIZATION_DISABLED, true);