feat(web): content editable editing for touch

This commit is contained in:
Joshua A. Horton 2022-09-22 10:31:01 +07:00
parent 5d74d89e2c
commit 64037c0832
2 changed files with 2 additions and 6 deletions

View file

@ -522,7 +522,7 @@ namespace com.keyman.dom {
console.warn("Error during attachment to / detachment from iframe: ");
console.warn(err);
}
} else if(x.isContentEditable && !touchable) { // Only allow contentEditable attachment outside of 'touch' mode.
} else if(x.isContentEditable) {
return true;
}
@ -775,8 +775,6 @@ namespace com.keyman.dom {
this.disableTouchElement(Pelem);
this.setupNonKMWTouchElement(Pelem);
var keyman = this.keyman;
// If a touch alias was removed, chances are it's gonna mess up our touch-based layout scheme, so let's update the touch elements.
window.setTimeout(function() {
this.listInputs();

View file

@ -93,9 +93,7 @@
<p><em>Note:</em> The iframe section should not actually attach/enable for touch devices
and does not support <code>setKeyboardForControl</code>.</p>
</div>
<div id='DynamicEditables'><h3><code>contenteditable</code> Elements:</h3>
<p><em>Note:</em> This section should not actually attach/enable for touch devices.</p>
</div>
<div id='DynamicEditables'><h3><code>contenteditable</code> Elements:</h3></div>
</div>
<hr/>
<h3><a href="../index.html">Return to testing home page</a></h3>