[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_3_BRANCH: kdelibs/kdeui
From: David Faure <faure () kde ! org>
Date: 2004-11-19 14:09:20
Message-ID: 20041119140920.2582716C68 () office ! kde ! org
[Download RAW message or body]
CVS commit by faure:
Fixed keyboard navigation in the inputdialogs which show a listbox: give
the listbox focus, and make Return accept the dialog.
M +9 -0 kinputdialog.cpp 1.13.2.1
--- kdelibs/kdeui/kinputdialog.cpp #1.13:1.13.2.1
@@ -199,4 +199,10 @@ KInputDialog::KInputDialog( const QStrin
d->m_listBox->ensureCurrentVisible();
layout->addWidget( d->m_listBox, 10 );
+ connect( d->m_listBox, SIGNAL( doubleClicked( QListBoxItem * ) ),
+ SLOT( slotOk() ) );
+ connect( d->m_listBox, SIGNAL( returnPressed( QListBoxItem * ) ),
+ SLOT( slotOk() ) );
+
+ d->m_listBox->setFocus();
}
@@ -241,4 +247,6 @@ KInputDialog::KInputDialog( const QStrin
connect( d->m_listBox, SIGNAL( doubleClicked( QListBoxItem * ) ),
SLOT( slotOk() ) );
+ connect( d->m_listBox, SIGNAL( returnPressed( QListBoxItem * ) ),
+ SLOT( slotOk() ) );
QString text = select.first();
@@ -249,4 +257,5 @@ KInputDialog::KInputDialog( const QStrin
d->m_listBox->ensureCurrentVisible();
+ d->m_listBox->setFocus();
layout->addStretch();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic