virtual kb
bendn 2022-05-07
parent 556edb2 · commit e939979
-rw-r--r--Chat.gd12
-rw-r--r--export_presets.cfg2
2 files changed, 13 insertions, 1 deletions
diff --git a/Chat.gd b/Chat.gd
index 1981288..a0cf4d0 100644
--- a/Chat.gd
+++ b/Chat.gd
@@ -40,6 +40,18 @@ func _ready():
regexes.append([reg("%([^%]+)%"), "[shake rate=20 level=25]$1[/shake]"])
regexes.append([reg("\\$([^\\$]+)\\$"), "[matrix]$1[/matrix]"])
+# if OS.has_feature('JavaScript'):
+# text.connect("gui_input", self, "_on_text_input")
+
+# func _on_text_input(input : InputEvent):
+# if input is InputEventMouseButton:
+# popup_input()
+
+# func popup_input():
+# text.text = JavaScript.eval("""
+# window.prompt('Username')
+# """)
+
func reg(src: String) -> RegEx:
var regex := RegEx.new()
diff --git a/export_presets.cfg b/export_presets.cfg
index c9109c1..83cf135 100644
--- a/export_presets.cfg
+++ b/export_presets.cfg
@@ -81,7 +81,7 @@ html/custom_html_shell=""
html/head_include=""
html/canvas_resize_policy=2
html/focus_canvas_on_start=true
-html/experimental_virtual_keyboard=false
+html/experimental_virtual_keyboard=true
progressive_web_app/enabled=false
progressive_web_app/offline_page=""
progressive_web_app/display=1