Skip to content

Commit

Permalink
fix: Allow space in html with contenteditable field
Browse files Browse the repository at this point in the history
Add a check before intercept the space event to handle case of contenteditable inside qx.ui.embed.Html()

fix qooxdoo#10130
  • Loading branch information
rommni committed Feb 15, 2021
1 parent 56e54e7 commit 127f1a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/class/qx/ui/root/Abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ qx.Class.define("qx.ui.root.Abstract",
var el = target.getContentElement();
var nodeName = el.getNodeName();
var domEl = el.getDomElement();
if (nodeName === "input" || nodeName === "textarea" || (domEl && domEl.contentEditable === "true")) {
var originalTarget = e.getOriginalTarget();
if (nodeName === "input" || nodeName === "textarea" || (domEl && domEl.contentEditable === "true")|| (originalTarget && originalTarget.contentEditable === "true")) {
return;
}

Expand Down

0 comments on commit 127f1a5

Please sign in to comment.