Bug 184087 - "Submit Bug Report" should automatically focus the Application drop-down
Summary: "Submit Bug Report" should automatically focus the Application drop-down
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kbugreport (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-12 01:08 UTC by Stephan Sokolow
Modified: 2009-10-16 03:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Sokolow 2009-02-12 01:08:52 UTC
Version:           unknown (using 4.2.00 (KDE 4.2.0), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.25-gentoo-r7-20080501

In order for Submit Bug Report to be efficiently usable from the keyboard, the Application drop-down should automatically gain focus on dialog creation. That way, I can immediately type a prefix to select an application, hit Esc to cancel, or hit Enter to select the visible option

Just don't make Enter also close it, because I often select an application and then hit Enter three or four times so I can file three or four bugs without having to worry about Konqueror's flaky retention of POST data in bugs.kde.org history entries.
Comment 1 Dario Andres 2009-07-15 16:44:42 UTC
I can commit a patch to allow the combobox to get the keyboard focus when the dialog is launched. 

However, pressing Enter will still launch the Bug Report Assistant for the selected component. 

If you want to use Enter to select the component from the list you should first show the combobox list (press Space while it has focus), browse with the cursor keys and then press Enter to select the desired one. (and the combobox list will close). This is how this GUI component work.

Are you expecting something else to improve in this dialog?
Thanks
Comment 2 Stephan Sokolow 2009-07-17 19:19:06 UTC
As described, your patch solves the issue mentioned in my first paragraph. (Once the dropdown has focus, everything I wanted is automatically handled by default Qt dropdown box behaviours. I just wanted appropriate focus defaults.)

The issue described in the second paragraph is that Konqueror's retention of POST data in history has always been a bit shaky, so to make submitting multiple bug reports easier, I'd like pressing Enter to not close the dialog. That way, if I want to report four bugs for the same app, I can select it and then press Enter, Enter, Enter, Enter, Escape.
Comment 3 Dario Andres 2009-07-18 15:26:12 UTC
Ok, I got the point now, thanks for the explanation.
I think it could be possible to do that, but I don't know if it will conflict with usability or something.
Thanks
Comment 4 Stephan Sokolow 2009-07-18 18:09:18 UTC
Ugh. In my opinion, the two biggest reasons GNOME is a pain are bad code quality and a misplaced over-emphasis on "Usability". I hope KDE isn't going down the same road. There's nothing left to flee to.

(Usability is for things where intuitiveness must trump functionality... like websites. One must critically analyze usability advice before taking action when writing desktop applications... especially ones for more technical users like the KDE bug-reporting systems. (I've never seen a computer novice report a bug using anything more complex than BasKet's problem reporting interface))
Comment 5 Christoph Feck 2009-10-16 03:09:52 UTC
SVN commit 1035846 by cfeck:

Set focus on application combo box

The usual case (reporting an error for the current application) is
not affected; Enter and Escape work as before.

BUG: 184087


 M  +2 -0      kbugreport.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1035846