Tab to cancel selects OK instead
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zenity (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
If I start a zenity window with a text box:
zenity --entry --text="add text"
then I press TAB one time to highlight the Cancel box and press ENTER to select Cancel, it instead selects OK. In fact no matter what element is selected in the zenity window, when I press ENTER it selects OK.
Only by physically clicking on the Cancel box can I cancel.
This misbehavior is potentially (depending on what question was being asked and what the action to be taken is) extremely dangerous.
$ uname -rm
3.2.0-24-generic x86_64
$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
$ apt-cache policy zenity
zenity:
Installed: 3.4.0-0ubuntu4
Candidate: 3.4.0-0ubuntu4
Version table:
*** 3.4.0-0ubuntu4 0
500 http://
100 /var/lib/
3.4.0-0ubuntu2 0
500 http://
By pressing tab and Space, the Cancel button is pressed. That seems to be because the default response is OK, however the default response (the one sent when Enter is pressed) is not always the currently focused button (Cancel in your case).