int index = symbolsList.getSelectedIndex(); this.caretChar = definedSymbols.charAt(index); StyleSheet.currentScreen = this.screen; insertCharacter(); StyleSheet.display.setCurrent( this.screen );  if (cmd == StyleSheet.CANCEL_CMD) { this.midpTextBox.setString( this.text ); } else if (!this.isUneditable) { setString( this.midpTextBox.getString() ); if ( this.screen instanceof Form) { notifyStateChanged();
if (box instanceof List) { if (cmd != StyleSheet.CANCEL_CMD) { int index = symbolsList.getSelectedIndex(); this.caretChar = definedSymbols.charAt(index); StyleSheet.currentScreen = this.screen; insertCharacter(); } else { StyleSheet.currentScreen = this.screen;
	public void commandAction(Command cmd, Displayable box) {		//#if tmp.supportsSymbolEntry			int index = symbolsList.getSelectedIndex();			this.caretChar = definedSymbols.charAt(index);			StyleSheet.currentScreen = this.screen;			insertCharacter();			StyleSheet.display.setCurrent( this.screen );		//#else			if (cmd == StyleSheet.CANCEL_CMD) {				this.midpTextBox.setString( this.text );			} else if (!this.isUneditable) {				setString( this.midpTextBox.getString() );				if ( this.screen instanceof Form) {					notifyStateChanged();				}			}			StyleSheet.display.setCurrent( this.screen );		//#endif	}