diff options
author | David Schulz <david.schulz@qt.io> | 2020-09-17 10:51:05 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2020-09-17 09:44:09 +0000 |
commit | 0198aca20512138eaa67e5c269b8dfbab4a12db5 (patch) | |
tree | 5d66ea799ddf3d7d7344ea6968dba8085a2a82de /src | |
parent | a749b6691e49ad91170c9912baf590cf49292d75 (diff) |
Editor: set deleteStartOfLine default shortcut on mac
Fixes: QTCREATORBUG-9219
Change-Id: I26f991641efbc914d848591931756666e34c26b7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/texteditor/texteditoractionhandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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, |