2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Allow replacing emoji by Tab in support mode.

This commit is contained in:
John Preston
2019-07-04 13:26:39 +02:00
parent 226ca6d117
commit d228495550

View File

@@ -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);
}