I have a JComboBox with multiple values in it. How to detect the keystroke control-option-space to open a pop-up window of JComboBox in MAC?
I have a JComboBox with multiple values in it. How to detect the keystroke
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not clear if you want the
control-option-spacekey binding in addition to, or instead of, the standardspacekey. In either case, you can evoke theaquaSpacePressedaction using a binding such as the one shown below. See How to Use Key Bindings for details.Because this is Mac-specific, you may want to use a predicate such as this:
Addendum: The sscce below was used to test the scenario in the revised question.
Addendum: For reasons that are not clear, enabling
System Preferences > Speech > Text to Speechpreempts thecontrol-option-spacebinding. As an alternative, you can bind to the standardAction,"spacePopup", shown in the revised example below.