fix(android): Move to kmwembedded.ts

This commit is contained in:
Darcy Wong 2020-01-29 11:55:29 +07:00
parent 5b7666e104
commit cbc243e30c
2 changed files with 5 additions and 7 deletions

View file

@ -135,9 +135,11 @@ namespace com.keyman.text {
let Codes = com.keyman.text.Codes;
let code = Lkc.Lcode;
// Intentionally not assigning K_TAB or K_ENTER so KMW will pass them back
// to the mobile apps to handle (insert characters or navigate forms).
if (code == Codes.keyCodes.K_SPACE) {
// Intentionally not assigning K_ENTER so KMW will pass them back
// to the mobile apps to handle (insert characters).
if (code == Codes.keyCodes.K_TAB) {
return '\t';
} else if (code == Codes.keyCodes.K_SPACE) {
return ' ';
} else if (code == Codes.keyCodes.K_BKSP) {
if(!disableDOM) {

View file

@ -77,10 +77,6 @@ namespace com.keyman.text {
}
return '';
case Codes.keyCodes['K_TAB']:
if(keyman.isEmbedded) {
// In embedded mode, let the device handle the tab character
return '\t';
}
if(!disableDOM) {
domManager.moveToNext(keyShiftState);
}