@solidrt/components 0.0.36 → 0.0.37

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidrt/components",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "license": "MIT",
5
5
  "author": "Antoine van Wel",
6
6
  "type": "module",
@@ -18,6 +18,6 @@
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@solidjs/signals": "2.0.0-beta.20",
21
- "@solidrt/core": "0.0.36"
21
+ "@solidrt/core": "0.0.37"
22
22
  }
23
23
  }
@@ -96,10 +96,10 @@ export function TextInput(props: TextInputProps) {
96
96
  } else if (e.key === "Delete") {
97
97
  buffer.deleteForward()
98
98
  setCaretOn(true)
99
- } else if (e.key === "Left") {
99
+ } else if (e.key === "ArrowLeft") {
100
100
  buffer.move("left")
101
101
  setCaretOn(true)
102
- } else if (e.key === "Right") {
102
+ } else if (e.key === "ArrowRight") {
103
103
  buffer.move("right")
104
104
  setCaretOn(true)
105
105
  } else if (e.key === "Home") {
@@ -108,7 +108,7 @@ export function TextInput(props: TextInputProps) {
108
108
  } else if (e.key === "End") {
109
109
  buffer.move("end")
110
110
  setCaretOn(true)
111
- } else if (e.key === "Return" || e.key === "Enter") {
111
+ } else if (e.key === "Enter") {
112
112
  props.onSubmit?.(value())
113
113
  setFocus(null)
114
114
  } else if (e.key === "Escape") {