Prevent default tab completion from overriding colon menu (#2133)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Daniel 2020-11-01 08:59:43 -05:00 committed by GitHub
parent 892e16c533
commit 2eb01af5e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -43,6 +43,7 @@
- Bugfix: Fixed previous link info not updating after `Link information` setting is enabled (#2054)
- Bugfix: Fix Tab key not working in the Ctrl+K Quick Switcher (#2065)
- Bugfix: Fix bug preventing moderator actions when viewing a user card from the search window (#1089)
- Bugfix: Fix `:` emote completion menu ignoring emote capitalization (#1962)
## 2.2.0

View file

@ -94,7 +94,8 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event)
bool doComplete =
(event->key() == Qt::Key_Tab || event->key() == Qt::Key_Backtab) &&
(event->modifiers() & Qt::ControlModifier) == Qt::NoModifier;
(event->modifiers() & Qt::ControlModifier) == Qt::NoModifier &&
!event->isAccepted();
if (doComplete)
{