Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
edced846
Commit
edced846
authored
Aug 29, 2020
by
Domenico Panella
Committed by
Nate Graham
Nov 17, 2020
Browse files
Allow folder creation on desktop via F10 shortcut
parent
a3c0a822
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/views/dolphinviewactionhandler.cpp
View file @
edced846
...
...
@@ -78,8 +78,12 @@ void DolphinViewActionHandler::createActions()
// KNewFileMenu takes care of the GUI stuff.
QAction
*
newDirAction
=
m_actionCollection
->
addAction
(
QStringLiteral
(
"create_dir"
));
newDirAction
->
setText
(
i18nc
(
"@action"
,
"Create Folder..."
));
m_actionCollection
->
setDefaultShortcut
(
newDirAction
,
Qt
::
Key_F10
);
newDirAction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"folder-new"
)));
#if KCONFIG_VERSION >= QT_VERSION_CHECK(5, 74, 0)
m_actionCollection
->
setDefaultShortcuts
(
newDirAction
,
KStandardShortcut
::
createFolder
());
#else
m_actionCollection
->
setDefaultShortcut
(
newDirAction
,
Qt
::
Key_F10
);
#endif
newDirAction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"folder-new"
)));
newDirAction
->
setEnabled
(
false
);
// Will be enabled in slotWriteStateChanged(bool) if the current URL is writable
connect
(
newDirAction
,
&
QAction
::
triggered
,
this
,
&
DolphinViewActionHandler
::
createDirectoryTriggered
);
...
...
Elvis Angelaccio
@elvisangelaccio
mentioned in commit
b03607b2
·
Nov 17, 2020
mentioned in commit
b03607b2
mentioned in commit b03607b20b4dfb1e36378571e9157894f24a6ab5
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment