This may or may not be the answer to a programming question; I will let voters decide.
Q. Enter key simulate click does not work for checkboxes
Why are you doing this? You are wasting time and effort deliberately “breaking” the work system. spacebar has long been an accepted keystroke to enable or disable the checkbox, Tab and Shift + Tab are used to navigate between form controls, and Enter↵ is the default value for OK .
By "working system" I mean the entire GUI system for Mac / Windows / Linux and millions of people who are trained to work within the framework of long-defined standard practices. You can distract the mouse from any competent employee and their performance will not be affected. They can navigate through the system and applications to do their job, because everything in the system, from setting the video resolution to entering the working hours of workers in a user form, works the same way .
Take a Windows user and tie it in front of your first Mac. They can use programs and do their job, because the vast majority of operations (and, in particular, for the main work of the application) are the same. Take the Mac user and bind him in front of the Linux machine, and you will get the same results. The basic daily work of the machine and its programs is the same.
What is the point of any potential job seeker to get a CV filled with office experience if you intend to create a proprietary system that takes all their training, practice and experience and puts them out of the window?
Using the spacebar option to enable or disable the check box precedes Windows 3.0. There is a difference between building a better mousetrap and reinventing the wheel.
¹ If you don’t think that maintaining GUI standards is something you should strive for, think about the reaction that Office 2007 Ribbon created. The entire sub-industry was created to create add-ins that led to Office 2003 functionality.
source share