// Called when the user presses the right arrow protected virtual void onKeyRight(KeyboardState keyboard) { if(pCursorPos< pText.Length) cursorPos++; if(keyboard.isKeyUp(KKL.SHIFT)) cursorEnd= pCursorPos; }
// Called when the user pressed the left arrow protected virtual void onKeyLeft(KeyboardState keyboard) { if(pCursorPos> 0) pCursorPos--; if(keyboard.isKeyUp(KKL.SHIFT)) cursorEnd= pCursorPos; }