fix shift key loses focus when renaming cell
This commit is contained in:
parent
69a6f2a55b
commit
66dd8c0bd2
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue