111112113114115116117118
if( isValid( keyCode ) ) { if( selection_.isEmpty() ) execute( new CharacterInsertion( selection_, text_, (char)keyCode, insertion_ ) ); else execute( new SelectionReplacement( selection_, text_, (char)keyCode, insertion_ ) ); } }