move input method callback since it's broadly applicable

This commit is contained in:
Ben Fry
2016-08-05 10:50:19 -04:00
parent 01b1bc7041
commit a223822949
4 changed files with 23 additions and 12 deletions

View File

@@ -40,7 +40,6 @@ import java.util.Arrays;
* continuing to hack this class.
*/
public class JavaInputHandler extends PdeInputHandler {
private Editor editor;
/** ctrl-alt on windows and linux, cmd-alt on mac os x */
static final int CTRL_ALT = ActionEvent.ALT_MASK |
@@ -48,7 +47,7 @@ public class JavaInputHandler extends PdeInputHandler {
public JavaInputHandler(Editor editor) {
this.editor = editor;
super(editor);
}
@@ -334,12 +333,6 @@ public class JavaInputHandler extends PdeInputHandler {
}
@Override
public void handleInputMethodCommit() {
editor.getSketch().setModified(true);
}
/**
* Return the index for the first character on this line.
*/