Skip to content

Commit

Permalink
Merge pull request #32571 from qgis/backport-32527-to-release-3_10
Browse files Browse the repository at this point in the history
[Backport release-3_10] Fix copy items from value map configuration
  • Loading branch information
elpaso committed Nov 3, 2019
2 parents 3dd2e84 + d8ae2b9 commit e6a94aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/editorwidgets/qgsvaluemapconfigdlg.cpp
Expand Up @@ -202,12 +202,13 @@ void QgsValueMapConfigDlg::populateComboBox( QComboBox *comboBox, const QVariant
bool QgsValueMapConfigDlg::eventFilter( QObject *watched, QEvent *event )
{
Q_UNUSED( watched )
if ( event->type() == QEvent::KeyRelease )
if ( event->type() == QEvent::KeyPress )
{
QKeyEvent *keyEvent = static_cast<QKeyEvent *>( event );
if ( keyEvent->matches( QKeySequence::Copy ) )
{
copySelectionToClipboard();
event->accept();
return true;
}
}
Expand Down

0 comments on commit e6a94aa

Please sign in to comment.