DELETE was not working properly in Roman entry mode.
Now it works ok.
This commit is contained in:
parent
0bacdcc229
commit
3e847ed009
1 changed files with 14 additions and 26 deletions
|
@ -217,23 +217,23 @@ public class DuffPane extends TibetanPane implements FocusListener {
|
||||||
with messages about how the users' keypresses are being
|
with messages about how the users' keypresses are being
|
||||||
interpreted. */
|
interpreted. */
|
||||||
public DuffPane(StatusBar sb) {
|
public DuffPane(StatusBar sb) {
|
||||||
super();
|
super();
|
||||||
initialize(sb, null, null);
|
initialize(sb, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DuffPane() {
|
public DuffPane() {
|
||||||
super();
|
super();
|
||||||
initialize(null, null, null);
|
initialize(null, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DuffPane(TibetanKeyboard keyboard) {
|
public DuffPane(TibetanKeyboard keyboard) {
|
||||||
super();
|
super();
|
||||||
initialize(null, keyboard, null);
|
initialize(null, keyboard, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DuffPane(java.net.URL keyboardURL) {
|
public DuffPane(java.net.URL keyboardURL) {
|
||||||
super();
|
super();
|
||||||
initialize(null, null, keyboardURL);
|
initialize(null, null, keyboardURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** For testing purposes, it's useful to create a DuffPane and not
|
/** For testing purposes, it's useful to create a DuffPane and not
|
||||||
|
@ -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));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -478,7 +465,7 @@ public class DuffPane extends TibetanPane implements FocusListener {
|
||||||
// a small cursor, though most everything else will be normal,
|
// a small cursor, though most everything else will be normal,
|
||||||
// if you call setDocument(doc) at the end of this method.
|
// if you call setDocument(doc) at the end of this method.
|
||||||
setDocument(doc);
|
setDocument(doc);
|
||||||
ThdlDebug.verify(getTibDoc() == doc);
|
ThdlDebug.verify(getTibDoc() == doc);
|
||||||
|
|
||||||
Style defaultStyle = styleContext.getStyle(StyleContext.DEFAULT_STYLE);
|
Style defaultStyle = styleContext.getStyle(StyleContext.DEFAULT_STYLE);
|
||||||
StyleConstants.setFontFamily(defaultStyle, "TibetanMachineWeb");
|
StyleConstants.setFontFamily(defaultStyle, "TibetanMachineWeb");
|
||||||
|
@ -500,7 +487,7 @@ public class DuffPane extends TibetanPane implements FocusListener {
|
||||||
charList.clear();
|
charList.clear();
|
||||||
oldGlyphList.clear();
|
oldGlyphList.clear();
|
||||||
holdCurrent = new StringBuffer();
|
holdCurrent = new StringBuffer();
|
||||||
updateStatus("Jskad is in its basic input mode");
|
updateStatus("Jskad is in its basic input mode");
|
||||||
isTopHypothesis = false;
|
isTopHypothesis = false;
|
||||||
isTypingVowel = false;
|
isTypingVowel = false;
|
||||||
|
|
||||||
|
@ -599,8 +586,8 @@ public class DuffPane extends TibetanPane implements FocusListener {
|
||||||
* @param size a point size
|
* @param size a point size
|
||||||
*/
|
*/
|
||||||
public void setByUserTibetanFontSize(int size) {
|
public void setByUserTibetanFontSize(int size) {
|
||||||
ThdlOptions.setUserPreference("thdl.default.tibetan.font.size", size);
|
ThdlOptions.setUserPreference("thdl.default.tibetan.font.size", size);
|
||||||
setTibetanFontSize(size);
|
setTibetanFontSize(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue