Capturing user tabbing when editing a webListBox cell

Is it possible to do?
I don’t see an obvious way to get the keydown events.

I have a Lisbon that users will be editing and it would be good to be able to get into a flow (type, tab, type…)

It raises the CellAction event just like Desktop. I tested to confirm this.
test.xojo_xml_project (4.0 KB)

That flow will probably be laggy with the round trips to the server.

Thanks Tim

You are correct, but the value that is returns is the contents of the cell, and I can’t find any way to determine if it was an return key, lost focus, tab, shift tab, etc that caused it.

I must be missing something though. I’m sure this should be possible.

That’s not necessarily true. Keep in mind key events were removed from the Web framework intentionally. Web Apps are not Desktop Apps and some design paradigms don’t carry over.

From what I’ve played with, the best you can get out of the framework directly is “the user finished editing” but not “by what means”.

Ok. I’ll work with that.

Thank you.

You could always file a ticket to see if @Ricardo_Cruz has any ideas for the framework that could help.

I think @Anthony_G_Cyphers’s GraffitiSuite has a module for listening to key events, but I do not know if that can hook into a dynamically created WebListbox editable cell.

1 Like

I’ve filed a ticket for this today.
#79502 - WebListbox editable cell tab handling

2 Likes

@Chris_Halford
There’s a class for catching keys client side in my web extensions repo. That should let you capture TAB and forward it to the server if you want.

4 Likes

Thanks, Tim.
I was going to do this as well, but am traveling with the family and have to hide in a closet to open my laptop or they’ll come after me with torches and pitchforks!

1 Like

I was totally unaware of your web extensions.
Thanks for bringing it to my attention.