@rbxts/centurion-ui 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,6 +38,7 @@ local function TerminalTextField(_param)
38
38
  local commandHistoryIndex = source(nil)
39
39
  local suggestionText = source("")
40
40
  local currentTextValue = ""
41
+ local onScreenKeyboard = false
41
42
  -- Focus text field when terminal becomes visible
42
43
  effect(function()
43
44
  if visible() then
@@ -213,7 +214,10 @@ local function TerminalTextField(_param)
213
214
  _result(currentText)
214
215
  end
215
216
  textBox.Text = ""
216
- textBox:CaptureFocus()
217
+ if not onScreenKeyboard then
218
+ textBox:CaptureFocus()
219
+ end
220
+ onScreenKeyboard = false
217
221
  end,
218
222
  TextChanged = function(currentText)
219
223
  local textBox = ref()
@@ -249,6 +253,7 @@ local function TerminalTextField(_param)
249
253
  return nil
250
254
  end
251
255
  task.wait()
256
+ onScreenKeyboard = true
252
257
  textBox:ReleaseFocus(true)
253
258
  end,
254
259
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rbxts/centurion-ui",
3
3
  "description": "Terminal UI for the Centurion command framework",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "author": "paradoxuum",
6
6
  "license": "MIT",
7
7
  "main": "out/init.lua",