aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/editor
diff options
context:
space:
mode:
authorGravatar Fabio Bas2023-10-04 22:44:13 +0200
committerGravatar ctrlaltca2023-10-18 10:26:35 +0200
commitcba0ebedf3f0cc4da6f8729dde10282b23eb18e6 (patch)
tree337a47550ae01e0f3e7b7cdec73e559dbdc32a33 /src/modules/editor
parentRemove unused calls to viewOptions() (diff)
downloadKVIrc-cba0ebedf3f0cc4da6f8729dde10282b23eb18e6.tar.gz
KVIrc-cba0ebedf3f0cc4da6f8729dde10282b23eb18e6.tar.bz2
KVIrc-cba0ebedf3f0cc4da6f8729dde10282b23eb18e6.zip
Make shortcuts compatible with qt6; remove unused KviShortcut constructor since it creates ambiguity with the previous
Diffstat (limited to 'src/modules/editor')
-rw-r--r--src/modules/editor/ScriptEditorImplementation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/editor/ScriptEditorImplementation.cpp b/src/modules/editor/ScriptEditorImplementation.cpp
index 6b5e8c4ac..81081fae8 100644
--- a/src/modules/editor/ScriptEditorImplementation.cpp
+++ b/src/modules/editor/ScriptEditorImplementation.cpp
@@ -385,7 +385,7 @@ void ScriptEditorWidget::keyPressEvent(QKeyEvent * e)
bool isShortcut = ((e->modifiers() & Qt::ControlModifier) && e->key() == Qt::Key_E); // CTRL+E
if(!m_pCompleter || !isShortcut) // don't process the shortcut when we have a completer
QTextEdit::keyPressEvent(e);
- const bool ctrlOrShift = e->modifiers() & (Qt::ControlModifier + Qt::ShiftModifier);
+ const bool ctrlOrShift = e->modifiers() & (Qt::ControlModifier | Qt::ShiftModifier);
if(!m_pCompleter || (ctrlOrShift && e->text().isEmpty()))
return;
static QString eow("~!@#$%^&*()_+{}|:\"<>?,/;'[]\\-="); // end of word