We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f7c7c0 commit 36faffbCopy full SHA for 36faffb
haxe/ui/backend/TextInputBase.hx
@@ -37,6 +37,23 @@ class TextInputBase extends TextDisplayBase {
37
el.style.position = "absolute";
38
el.style.backgroundColor = "inherit";
39
el.style.whiteSpace = "nowrap";
40
+ el.onkeydown = function(e) {
41
+ if (e.keyCode == 9 || e.which == 9) {
42
+ trace("here");
43
+ e.preventDefault();
44
+ e.stopImmediatePropagation();
45
+ e.stopPropagation();
46
+
47
+ var ta:TextAreaElement = cast(el, TextAreaElement);
48
+ var s = ta.selectionStart;
49
+ ta.value = ta.value.substring(0, ta.selectionStart) + "\t" + ta.value.substring(ta.selectionEnd);
50
+ ta.selectionEnd = s + 1;
51
52
53
+ return false;
54
+ }
55
+ return true;
56
57
}
58
return el;
59
0 commit comments