Page 1 of 1
How to avoid focus on nothing
Posted: Tue May 04, 2021 6:45 pm
by simon.schvartzman
Hi all, I have one card with one input field and two buttons and my goal is not letting the user to focus "on nothing" by clicking on the card.
Just to make myself clear the UX expects the focus to be always on the input field (waiting for a barcode to be scanned) until the user clicks on one of the two buttons to go to another card.
Ideas/suggestions are veeeery muuuuch welcomed
Thanks
Re: How to avoid focus on nothing
Posted: Tue May 04, 2021 6:52 pm
by Klaus
Hi Simon,
why not put a little "mouseup" handler in the card script,
which always puts the focus to your namely field?
Code: Select all
on mouseup
focus on fld "your field here..."
ebnd mouseup
Best
Klaus
Re: How to avoid focus on nothing
Posted: Tue May 04, 2021 6:57 pm
by simon.schvartzman
Klauss, this is a perfect example of the secular KISS (keep it simple stupid) philosophy developed by Socrates or Platon (I don't really recall whom...)
Many thanks that will work for me!
Best
Re: How to avoid focus on nothing
Posted: Tue May 04, 2021 7:00 pm
by Klaus
It is KLAUS, just one S.

Re: How to avoid focus on nothing
Posted: Tue May 04, 2021 10:28 pm
by bogs
Klaus wrote: ↑Tue May 04, 2021 7:00 pm
It is KLAUS, just one S.
Until it is "Klausimus", then there are 2 s'es, but they are separated by an imu

Re: How to avoid focus on nothing
Posted: Tue May 04, 2021 11:00 pm
by Klaus
bogs wrote: ↑Tue May 04, 2021 10:28 pm
Klaus wrote: ↑Tue May 04, 2021 7:00 pm
It is KLAUS, just one S.
Until it is "Klausimus", then there are 2 s'es, but they are separated by an imu
"klausimus", you must be kiddin',

I'm taking this personal!
Re: How to avoid focus on nothing
Posted: Wed May 05, 2021 7:31 am
by SparkOut
Nobody ever calls Klausimausi by the name "Klausimus" though. Not unless they want to be butted with the head that can knock down walls.
Re: How to avoid focus on nothing
Posted: Wed May 05, 2021 8:30 am
by Klaus
SparkOut wrote: ↑Wed May 05, 2021 7:31 am
Nobody ever calls Klausimausi by the name "Klausimus" though. Not unless they want to be butted with the head that can knock down walls.
EX-ACTLY!
Thank you!
Re: How to avoid focus on nothing
Posted: Wed May 05, 2021 9:58 am
by bogs
SparkOut wrote: ↑Wed May 05, 2021 7:31 am
Nobody ever calls Klausimausi by the name "Klausimus" though. Not unless they want to be butted with the head that can knock down walls.
I thought everyone knew, I am a nobody from
way way back

Re: How to avoid focus on nothing
Posted: Wed May 05, 2021 10:50 am
by Klaus
Excuses, excuses, excuses...
