- nicer way to combine two paths\r
- -1.1 3 ^ shouldn't give a complex number\r
- don't show listener on certain commands\r
-- inferior hangs\r
- plugin should not exit jEdit on fatal errors\r
- IN: format base: work with all types of numbers\r
-- home key in the listener\r
- wordpreview: don't show for string literals and comments\r
- eliminate usage of long long\r
- 64 bit support\r
- alist -vs- assoc terminology\r
-- minimize stage2 initialization code, just move it to source files\r
- clean up listener's action popups\r
- jedit ==> jedit-word, jedit takes a file name\r
- introduce ifte* and ?str-head/?str-tail where appropriate\r
listenerList = new EventListenerList();
+ InputMap inputMap = getInputMap();
+
/* Replace enter to evaluate the input */
- getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0),
+ inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0),
new EnterAction());
/* Replace backspace to stop backspacing over the prompt */
- getInputMap().put(KeyStroke.getKeyStroke('\b'),
+ inputMap.put(KeyStroke.getKeyStroke('\b'),
new BackspaceAction());
+ inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_HOME,0),
+ new HomeAction());
+
/* Workaround */
- getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE,0),
+ inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE,0),
new DummyAction());
} //}}}
}
} //}}}
+ //{{{ BackspaceAction class
+ class BackspaceAction extends AbstractAction
+ {
+ public void actionPerformed(ActionEvent evt)
+ {
+ setCaretPosition(limit);
+ }
+ } //}}}
+
//{{{ DummyAction class
class DummyAction extends AbstractAction
{