forked from qt-creator/qt-creator
Utils: disable multi cursor add keyboard shortcuts on macOS
They work inconsistently and interfere with system shortcuts Change-Id: Ibd85483904144ca697bb372746c7999299b7b1f8 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "algorithm.h"
|
||||
#include "camelcasecursor.h"
|
||||
#include "hostosinfo.h"
|
||||
#include "qtcassert.h"
|
||||
|
||||
#include <QKeyEvent>
|
||||
@@ -309,7 +310,7 @@ bool MultiTextCursor::handleMoveKeyEvent(QKeyEvent *e,
|
||||
QPlainTextEdit *edit,
|
||||
bool camelCaseNavigationEnabled)
|
||||
{
|
||||
if (e->modifiers() & Qt::AltModifier) {
|
||||
if (e->modifiers() & Qt::AltModifier && !Utils::HostOsInfo::isMacHost()) {
|
||||
QTextCursor::MoveOperation op = QTextCursor::NoMove;
|
||||
if (multiCursorAddEvent(e, QKeySequence::MoveToNextWord)) {
|
||||
op = QTextCursor::WordRight;
|
||||
|
||||
Reference in New Issue
Block a user