Summary: | ok-button in action-selector is not assigned to return-key | ||
---|---|---|---|
Product: | [Unmaintained] kio | Reporter: | Fabian Köster <f.koester> |
Component: | media | Assignee: | Kevin Ottens <ervin> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | wstephenson |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Fabian Köster
2006-07-01 20:06:21 UTC
Confirmed. The bug happens because the list of actions gets focus and for some reason does not propagate the return key press. If I set the dialog's main widget to a QLabel, the problem still occurs. However, krfb's confirm incoming vnc connection dialog uses similar code but does not have this problem. Investigating further... SVN commit 593174 by wstephens: Explicitly give focus back to the Ok button, otherwise the list view of actions swallows the Return keypress (unnecessarily as it has no tree to expand). Now don't complain that you have to tab onto the listview... BUG: 130118 M +3 -0 notificationdialog.cpp --- branches/KDE/3.5/kdebase/kioslave/media/medianotifier/notificationdialog.cpp #593173:593174 @@ -26,6 +26,7 @@ #include <klistbox.h> #include <qlabel.h> #include <qcheckbox.h> +#include <qpushbutton.h> #include "actionlistboxitem.h" #include "notificationdialogview.h" @@ -70,6 +71,8 @@ this, SLOT( delayedDestruct() ) ); m_actionWatcher->startScan(); + QPushButton * btn = actionButton( Ok ); + btn->setFocus(); } NotificationDialog::~NotificationDialog() |