diff --git a/src/core/piano.cpp b/src/core/piano.cpp index a9cff9a19..b80550bb5 100644 --- a/src/core/piano.cpp +++ b/src/core/piano.cpp @@ -718,7 +718,9 @@ void pianoView::focusOutEvent( QFocusEvent * ) // focus just switched to another control inside the instrument track // window we live in? - if( parentWidget()->parentWidget()->focusWidget() != this ) + if( parentWidget()->parentWidget()->focusWidget() != this && + !parentWidget()->parentWidget()-> + focusWidget()->inherits( "QLineEdit" ) ) { // then reclaim keyboard focus! setFocus();