Skip to content

Commit

Permalink
Prevent overriding ctrl+A and ctrl+E [AlloyTools#256]
Browse files Browse the repository at this point in the history
I think these were mistakenly added to be similar to Emacs navigation

Signed-off-by: Brock Wilcox <[email protected]>
  • Loading branch information
awwaiid committed Apr 13, 2024
1 parent d531233 commit 2c1a2c4
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,8 @@ public void keyPressed(KeyEvent e) {
int modifier = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
this.pane.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, modifier), "line.begin");
this.pane.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, modifier + InputEvent.SHIFT_DOWN_MASK), "line.begin");
this.pane.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.CTRL_DOWN_MASK), "line.begin");
this.pane.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.CTRL_DOWN_MASK + InputEvent.SHIFT_DOWN_MASK), "line.begin");
this.pane.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, modifier), "line.end");
this.pane.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, modifier + InputEvent.SHIFT_DOWN_MASK), "line.end");
this.pane.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_A, InputEvent.CTRL_DOWN_MASK), "line.end");
this.pane.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_A, InputEvent.CTRL_DOWN_MASK + InputEvent.SHIFT_DOWN_MASK), "line.end");

this.pane.getActionMap().put("line.begin", new AbstractAction() {

Expand Down

0 comments on commit 2c1a2c4

Please sign in to comment.