fix shift key loses focus when renaming cell

This commit is contained in:
shun-iwasawa 2021-12-23 00:43:03 +09:00 committed by manongjohn
parent 69a6f2a55b
commit 66dd8c0bd2

View file

@ -1122,6 +1122,11 @@ void RenameCellField::keyPressEvent(QKeyEvent *event) {
}
offset = m_viewer->orientation()->arrowShift(key);
break;
case Qt::Key_Shift:
// prevent the field to lose focus when typing shift key
event->accept();
return;
break;
default:
QLineEdit::keyPressEvent(event);
return;