<table><tr><td style="">antonanikin retitled this revision from "QtCreator-style "Focus Editor or Hide Docks"" to "Add new action "Focus Editor and Hide Docks"".<br />antonanikin updated the summary for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-m2z5ud2mqm5icbr/" rel="noreferrer">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2958" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>EDIT DETAILS</strong><div><div style="white-space: pre-wrap; color: #74777D;">This patch provides <span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);">QtCreator-like</span><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">new</span> behavior for focusing editor and<span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);">/or</span> closing <span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">opened </span>docks. Currently we have different shortcuts for such operations which provides flexibility but seems to be not very comfortable for permanent using. <span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);">I tried to implement missing "QtCreator-style" functionality for KDevelop. Now we have one action (with default shortcut `ESC` like QtCreator) which allows us:<br />
<br />
1) Focus the editor if it is not focused now ("Focus" step)<br />
2) Close unlocked docks if the editor is already focused (or if the editor is closed) ("Hide step").<br />
<br />
The patch allows to control </span><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">Now we have new action </span> which <span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);">docks should be closed by adding "Lock/U</span><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">allows us to focus editor and hide u</span>nlock<span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);">" button to dock panel.</span><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">ed docks with "one shoot".<br />
<br />
The patch allows to control which</span> <span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);">If Dock is</span><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">docks should be</span> locked <span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);">then we skip it during "Hide step"</span><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">by adding "Lock the Panel from Hiding" item to dock panel context menu</span>. Lock settings are saved in global configuration file. <br />
<br />
<span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);">By default this feature is disabled.<br />
<br />
Config page:<br />
{F370322}<br />
<br />
KDevelop with enabled feature:<br />
{F370323}</span><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">By default new action has no active shortcut.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKDEVPLATFORM KDevPlatform</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2958" rel="noreferrer">https://phabricator.kde.org/D2958</a></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>antonanikin, KDevelop<br /><strong>Cc: </strong>apol, kdevelop-devel<br /></div>