Skip to content

Commit

Permalink
feat(DCrumbEdit): progate Key_Escape to parent window.
Browse files Browse the repository at this point in the history
Change-Id: I5413dc6f412d0b26f65b0f8d9563966e06a1a2df
  • Loading branch information
SHIHUAMarryMe committed Apr 11, 2018
1 parent d39ce07 commit 390f51b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widgets/dcrumbedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,11 @@ void DCrumbEdit::keyPressEvent(QKeyEvent *event)
D_D(DCrumbEdit);

bool result = d->makeCrumb();

if (!result)
event->ignore();

} else if (event->key() == Qt::Key_Escape) {
event->ignore();
} else {
QTextEdit::keyPressEvent(event);
}
Expand Down

0 comments on commit 390f51b

Please sign in to comment.