Closed daniel-p-h closed 1 year ago
Closed, my bad code! Logic for moving items back into the list is to blame
Ok. You may also want to think about using SetChangedFunc()
instead of SetInputCapture()
. SetInputCapture()
is meant to intercept actual key stroke events while SetChangedFunc()
handles all common key strokes for you and then simply informs you that the content of the InputField
has changed.
Ok. You may also want to think about using
SetChangedFunc()
instead ofSetInputCapture()
.SetInputCapture()
is meant to intercept actual key stroke events whileSetChangedFunc()
handles all common key strokes for you and then simply informs you that the content of theInputField
has changed.
I did notice this after I posted and it works much better, but thanks for taking the time to read!
Hi, I've just started toying with go so this might be my bad code, or a side effect of language features I don't understand.
When trying to put together a dynamic list the behaviour I'm experiencing is very unusal. I'm not entirely sure what it's doing to be honest, but it's not what I expected which is for items to be removed / added as per the result of strings.Contains(item, searchQuery).
Example code: