<table><tr><td style="">antonanikin created this revision.<br />antonanikin added a reviewer: KDevelop.<br />antonanikin set the repository for this revision to rKDEVPLATFORM KDevPlatform.<br />Restricted Application added a subscriber: kdevelop-devel.
</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>REVISION SUMMARY</strong><div><p>This patch provides QtCreator-like behavior for focusing editor and/or closing docks. Currently we have different shortcuts for such operations which provides flexibility but seems to be not very comfortable for permanent using. I tried to implement missing "QtCreator-style" functionality for KDevelop. Now we have one action (with default shortcut <tt style="background: #ebebeb; font-size: 13px;">ESC</tt> like QtCreator) which allows us:</p>
<ol class="remarkup-list">
<li class="remarkup-list-item">Focus the editor if it is not focused now ("Focus" step)</li>
<li class="remarkup-list-item">Close unlocked docks if the editor is already focused (or if the editor is closed) ("Hide step").</li>
</ol>
<p>The patch allows to control which docks should be closed by adding "Lock/Unlock" button to dock panel. If Dock is locked then we skip it during "Hide step". Lock settings are saved in global configuration file.</p>
<p><a href="https://phabricator.kde.org/F355122" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F355122: focus_hide_esc.png</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested with <tt style="background: #ebebeb; font-size: 13px;">master</tt> branch. Current patch also contains <tt style="background: #ebebeb; font-size: 13px;">IdealButtonBarWidget::isShown()</tt> method from <a href="https://phabricator.kde.org/D2915" class="remarkup-link" target="_blank" rel="noreferrer">D2915</a> which is pushed to <tt style="background: #ebebeb; font-size: 13px;">5.0</tt> branch but not already merged into <tt style="background: #ebebeb; font-size: 13px;">master</tt> branch.</p></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>AFFECTED FILES</strong><div><div>sublime/idealbuttonbarwidget.cpp<br />
sublime/idealbuttonbarwidget.h<br />
sublime/mainwindow_p.cpp<br />
sublime/mainwindow_p.h</div></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>kdevelop-devel<br /></div>