Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/input/TextEntryNativeInterface.java
/**
		 * Called when the keyboard key event occurs prior to any system being notified
		 * 
		 * @author S Downie
		 * 
		 * @param key code
		 * @param key event
		 * 
		 * @return Whether the event has been handled
		 */
Called when the keyboard key event occurs prior to any system being notified

@author S Downie

@param key code
@param key event

@return Whether the event has been handled
Called when the keyboard key event occurs prior to any system being notified @author S Downie @param key code @param key event @return Whether the event has been handled
@Override public boolean onKeyPreIme(int in_keyCode, KeyEvent in_event)
        {
            if (in_event.getKeyCode() == KeyEvent.KEYCODE_BACK || in_event.getKeyCode() == KeyEvent.FLAG_EDITOR_ACTION || in_event.getKeyCode() == KeyEvent.KEYCODE_ENTER)
            {
				dismiss();
            	nativeOnKeyboardDismissed();
            	return true;
            }
            return super.onKeyPreIme(in_keyCode, in_event);
        }
@ Override public boolean onKeyPreIme ( int in_keyCode , KeyEvent in_event ) { if ( in_event . getKeyCode ( ) == KeyEvent . KEYCODE_BACK || in_event . getKeyCode ( ) == KeyEvent . FLAG_EDITOR_ACTION || in_event . getKeyCode ( ) == KeyEvent . KEYCODE_ENTER ) { dismiss ( ) ; nativeOnKeyboardDismissed ( ) ; return true ; } return super . onKeyPreIme ( in_keyCode , in_event ) ; }
Called when the keyboard key event occurs prior to any system being notified
Called when the keyboard key event occurs prior to any system being notified