Merge pull request #2561 from keymanapp/fix/web/design-iframe-bksp

fix(web): default BKSP output targeting
This commit is contained in:
Joshua Horton 2020-02-03 10:22:08 +07:00 • committed by GitHub
commit e499c8a828
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -1,5 +1,8 @@
# KeymanWeb Version History
## 2020-02-03 13.0.33 beta
* Bug fix: BKSP not working corrrectly with design-mode iframes (#2561)
## 2020-01-30 13.0.32 beta
* Bug fix: Predictive-text tweaks for RTL language lexical models (#2553, #2554)
* Bug fix: Fixed external keyboard key "tab" for embedded devices (#2546)

View file

@ -73,7 +73,13 @@ namespace com.keyman.text {
if(disableDOM) {
return '\b'; // the escape sequence for backspace.
} else {
keyman.interface.defaultBackspace();
// If we have an available target (via Lkc/Lelem), use that instead of
// forcing defaultBackspace to search for it.
var target: OutputTarget;
if(Lelem && Lelem._kmwAttachment) {
target = Lelem._kmwAttachment.interface;
}
keyman.interface.defaultBackspace(target);
}
return '';
case Codes.keyCodes['K_TAB']: