Commit graph

65 commits

Author SHA1 Message Date
okapii
3f06b9f0a6 Textinput: structural refactor that turns the flat variant into the base style 2025-07-10 11:21:38 +02:00
okapii
c194cb22da TextInput: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
a97f05adc5 TextInput: gradient refactor 2025-07-10 11:21:38 +02:00
Eddy Bruel
dc64ca2747 Dead code removal 2025-07-09 15:04:16 +02:00
Kevin Boos
b1780a0355 Allow users of TextInput to know when a keypress had no effect (#767)
* Allow users of `TextInput` to know when a keypress had no effect

This PR makes the `TextInput` widget emit a `TextInputAction::KeyDownUnhandled`
action upon keypresses that don't actually make any change to the widget's selection.

This action is currently only emitted for the Up, Down, Left, and Right arrow keys,
but we can certainly add it to others like Backspace, Delete, etc if desired.

Use case: if you want to enable custom behavior when the user uses arrow keys
to navigate an empty TextInput widget, such as jumping up out of the TextInput focus
to edit the most recent message you just sent in a chat app, then this PR
is necessary. Otherwise there's no way to know whether a given input actually had
any effect on the TextInput's inner cursor/selection state.

* Add the FaceID usage description to iOS Info.plist

Allows Makepad apps to use biometric auth on iOS
2025-06-20 20:48:06 +02:00
okapii
4afd4c16fa Optimize flatter widget variants and remove ones for which this approach does not work properly 2025-06-16 10:48:31 +02:00
admin
040afea830 filter text input 2025-05-17 14:20:25 +02:00
admin
d4b2f76152 filter text input 2025-05-17 14:14:25 +02:00
admin
e8d771c804 filter text input 2025-05-17 14:09:42 +02:00
Admin
b9903e7fec fix wasm timerstorm 2025-05-11 12:25:26 +02:00
Kevin Boos
03492fffc6 Allow saving/restoring the state of the TextInput widget (#736)
* Allow saving/restoring the state of the `TextInput` widget

This redoes the changes introduced in #533, but modified for the new version of TextInput

* Properly restore the state of the TextInput
2025-05-10 19:50:16 +02:00
Kevin Boos
ed10ca8385 Add KeyModifiers parameter to TextInputAction::Returned (#737) 2025-05-10 19:48:59 +02:00
Admin
a1a06273e9 ui zoo sliders and text input hotload fix 2025-05-09 12:19:15 +02:00
Eddy Bruël
5522c12d46 Fix text centering (#733) 2025-05-08 13:26:43 +02:00
Eddy Bruel
ff9048cc37 Initial commit 2025-05-06 10:11:37 +02:00