From 0198aca20512138eaa67e5c269b8dfbab4a12db5 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 17 Sep 2020 10:51:05 +0200 Subject: Editor: set deleteStartOfLine default shortcut on mac Fixes: QTCREATORBUG-9219 Change-Id: I26f991641efbc914d848591931756666e34c26b7 Reviewed-by: Eike Ziller --- src/plugins/texteditor/texteditoractionhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/texteditor/texteditoractionhandler.cpp b/src/plugins/texteditor/texteditoractionhandler.cpp index e6ac56e085..ce340e803f 100644 --- a/src/plugins/texteditor/texteditoractionhandler.cpp +++ b/src/plugins/texteditor/texteditoractionhandler.cpp @@ -240,7 +240,8 @@ void TextEditorActionHandlerPrivate::createActions() m_deleteEndOfWordCamelCaseAction = registerAction(DELETE_END_OF_WORD_CAMEL_CASE, [] (TextEditorWidget *w) { w->deleteEndOfWordCamelCase(); }, true, tr("Delete Word Camel Case from Cursor On")); m_deleteStartOfLineAction = registerAction(DELETE_START_OF_LINE, - [] (TextEditorWidget *w) { w->deleteStartOfLine(); }, true, tr("Delete Line up to Cursor")); + [] (TextEditorWidget *w) { w->deleteStartOfLine(); }, true, tr("Delete Line up to Cursor"), + Core::useMacShortcuts ? QKeySequence(tr("Ctrl+Backspace")) : QKeySequence()); m_deleteStartOfWordAction = registerAction(DELETE_START_OF_WORD, [] (TextEditorWidget *w) { w->deleteStartOfWord(); }, true, tr("Delete Word up to Cursor")); m_deleteStartOfWordCamelCaseAction = registerAction(DELETE_START_OF_WORD_CAMEL_CASE, -- cgit v1.2.1