DELETE was not working properly in Roman entry mode.

Now it works ok.
This commit is contained in:
eg3p 2003-04-17 19:48:22 +00:00
parent 0bacdcc229
commit 3e847ed009

View file

@ -365,27 +365,14 @@ public class DuffPane extends TibetanPane implements FocusListener {
private void createActionTable(JTextComponent textComponent) { private void createActionTable(JTextComponent textComponent) {
actions = new Hashtable(); actions = new Hashtable();
Action[] actionsArray = textComponent.getActions(); Action[] actionsArray = textComponent.getActions();
for (int i = 0; i < actionsArray.length; i++) { for (int i = 0; i < actionsArray.length; i++) {
Action a = actionsArray[i]; Action a = actionsArray[i];
actions.put(a.getValue(Action.NAME), a); actions.put(a.getValue(Action.NAME), a);
//System.out.println(a.getValue(Action.NAME));
} }
} }
private Action getActionByName(String name) { private Action getActionByName(String name) {
return (Action)(actions.get(name)); return (Action)(actions.get(name));
} }
/** /**
@ -1116,6 +1103,7 @@ public void paste(int offset) {
case KeyEvent.VK_TAB: case KeyEvent.VK_TAB:
case KeyEvent.VK_ENTER: case KeyEvent.VK_ENTER:
case KeyEvent.VK_ESCAPE: case KeyEvent.VK_ESCAPE:
case KeyEvent.VK_DELETE:
case KeyEvent.VK_BACK_SPACE: case KeyEvent.VK_BACK_SPACE:
break; break;
default: default: