OSDN Git Service

fixed bug: Action copyWithEscape and clearSelectedCellValue were not bound in ResultS...
authorargius <argius.net@gmail.com>
Wed, 8 May 2013 12:38:50 +0000 (21:38 +0900)
committerargius <argius.net@gmail.com>
Wed, 8 May 2013 12:38:50 +0000 (21:38 +0900)
src/net/argius/stew/ui/window/ResultSetTable.java

index 3a7c901..0ece522 100644 (file)
@@ -99,7 +99,9 @@ final class ResultSetTable extends JTable implements AnyActionListener, TextSear
         // key binds
         final int shortcutKey = Utilities.getMenuShortcutKeyMask();
         AnyAction aa = new AnyAction(this);
+        aa.bindSelf(copyWithEscape, getKeyStroke(VK_C, shortcutKey | InputEvent.SHIFT_DOWN_MASK));
         aa.bindSelf(paste, getKeyStroke(VK_V, shortcutKey));
+        aa.bindSelf(clearSelectedCellValue, getKeyStroke(VK_DELETE, 0));
         aa.bindKeyStroke(true, adjustColumnWidth, getKeyStroke(VK_SLASH, shortcutKey));
         aa.bindKeyStroke(false, doNothing, getKeyStroke(VK_ESCAPE, 0));
     }