mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 17:51:41 -05:00
Close languages box by Escape key.
This commit is contained in:
parent
d0e48a02a1
commit
d485287a59
1 changed files with 4 additions and 0 deletions
|
@ -1070,6 +1070,10 @@ void LanguageBox::prepare() {
|
|||
|
||||
void LanguageBox::keyPressEvent(QKeyEvent *e) {
|
||||
const auto key = e->key();
|
||||
if (key == Qt::Key_Escape) {
|
||||
closeBox();
|
||||
return;
|
||||
}
|
||||
const auto selected = [&] {
|
||||
if (key == Qt::Key_Up) {
|
||||
return _jump(-1);
|
||||
|
|
Loading…
Add table
Reference in a new issue