mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-23 16:56:55 +00:00
Allow replacing emoji by Tab in support mode.
This commit is contained in:
parent
226ca6d117
commit
d228495550
@ -275,8 +275,7 @@ void SuggestionsWidget::keyPressEvent(QKeyEvent *e) {
|
||||
bool SuggestionsWidget::handleKeyEvent(int key) {
|
||||
if (key == Qt::Key_Enter || key == Qt::Key_Return) {
|
||||
return triggerSelectedRow();
|
||||
} else if (key == Qt::Key_Tab
|
||||
&& (!AuthSession::Exists() || !Auth().supportMode())) {
|
||||
} else if (key == Qt::Key_Tab) {
|
||||
if (_selected < 0 || _selected >= _rows.size()) {
|
||||
setSelected(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user