mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 17:05:34 +00:00
Fixes mid-word backspace issues.
This commit is contained in:
parent
9137eca2e7
commit
4ae9394f51
1 changed files with 5 additions and 0 deletions
|
|
@ -12,6 +12,11 @@ class ModelCompositor {
|
|||
// doesn't prevent loading on IE.
|
||||
//let whitespaceRemover = /.*[\u0009\u000A\u000D\u0020\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/iu;
|
||||
|
||||
// Filter out null-inserts; their high probability can cause issues.
|
||||
if(transform.insert == '') { // Can actually register as 'whitespace'.
|
||||
return false;
|
||||
}
|
||||
|
||||
// Temp solution:
|
||||
let whitespaceRemover = /.*\s/; // At least handles standard whitespace.
|
||||
let insert = transform.insert;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue