Application reload while using IME

Published 2014-10-27 | (Compatible with SDK 2.5,3.5,4.5,5.0,5.1 and 2011,2012,2013,2014 models)

How to prevent application reload in the IME module

If you application contains a form with the input field inside, the default action on pressing the ENTER key may be application reload.

To avoid this, the onSubmit form event should always return false as in the example below.

Source Files


The files needed for the sample application are here.


<form id="plain" class="window" onSubmit="return false;">
    <p>Text box with no constraints</p>
    <textarea id="plainText" type="text" size="20" height="30" ></textarea>