mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Ignore Shift+Tab in chat widget input for now.
Don't autocomplete if Ctrl is pressed
This commit is contained in:
parent
12812e24ff
commit
c9df6ddaab
1 changed files with 8 additions and 2 deletions
|
@ -71,9 +71,15 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event)
|
||||||
{
|
{
|
||||||
event->ignore();
|
event->ignore();
|
||||||
|
|
||||||
keyPressed(event);
|
this->keyPressed(event);
|
||||||
|
|
||||||
if (event->key() == Qt::Key_Tab) {
|
if (event->key() == Qt::Key_Backtab) {
|
||||||
|
// Ignore for now. We want to use it for autocomplete later
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event->key() == Qt::Key_Tab &&
|
||||||
|
(event->modifiers() & Qt::ControlModifier) == Qt::NoModifier) {
|
||||||
QString currentCompletionPrefix = this->textUnderCursor();
|
QString currentCompletionPrefix = this->textUnderCursor();
|
||||||
|
|
||||||
if (!currentCompletionPrefix.size()) {
|
if (!currentCompletionPrefix.size()) {
|
||||||
|
|
Loading…
Reference in a new issue