@rbxts/centurion-ui 1.0.0-dev-92cc801 → 1.0.0-dev-2d5383e

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.
@@ -45,6 +45,7 @@ local function TerminalTextField(_param)
45
45
  local commandHistory = source({})
46
46
  local commandHistoryIndex = source(nil)
47
47
  local suggestionText = source("")
48
+ local currentTextValue = ""
48
49
  -- Focus text field when terminal becomes visible
49
50
  effect(function()
50
51
  if visible() then
@@ -353,6 +354,10 @@ local function TerminalTextField(_param)
353
354
  value = (string.gsub(value, "\t", ""))
354
355
  end
355
356
  textBox.Text = value
357
+ if currentTextValue == value then
358
+ return nil
359
+ end
360
+ currentTextValue = value
356
361
  local _result = onTextChange
357
362
  if _result ~= nil then
358
363
  _result(value)
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.0-dev-92cc801",
4
+ "version": "1.0.0-dev-2d5383e",
5
5
  "author": "paradoxuum",
6
6
  "license": "MIT",
7
7
  "main": "out/init.lua",
@@ -32,7 +32,7 @@
32
32
  "dev": "shx rm -rf out && rbxtsc -w"
33
33
  },
34
34
  "devDependencies": {
35
- "@rbxts/centurion": "^1.0.0-dev-92cc801",
35
+ "@rbxts/centurion": "^1.0.0-dev-2d5383e",
36
36
  "@rbxts/compiler-types": "2.3.0-types.1",
37
37
  "@rbxts/types": "^1.0.794",
38
38
  "roblox-ts": "2.3.0-dev-26ec859",