<table><tr><td style="">thomassc created this revision.<br />Herald added a project: Kate.<br />Herald added a subscriber: kwrite-devel.<br />thomassc requested review of this revision.
</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/D22308">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The keyboard shortcut for snippets did not work while the snippets tool view was minimized. This seems to be because the snippet QActions must be added to a visible(?) widget to be considered. Thus, this change makes the snippets plugin add its actions to the main window instead of its tool view such that they remain active when the snippets tool view is minimized to the side.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>I tested it manually. Note for testing: There seems to be another bug that sometimes prevents the shortcuts for new snippets from working (a restart of the application should make them work). I think that this is unrelated to this change and will try to address it next.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R40 Kate</div></div></div><br /><div><strong>BRANCH</strong><div><div>snippet_shortcuts_with_minimized_tool_view</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22308">https://phabricator.kde.org/D22308</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>addons/snippets/katesnippets.cpp<br />
addons/snippets/snippetview.cpp<br />
addons/snippets/snippetview.h</div></div></div><br /><div><strong>To: </strong>thomassc<br /><strong>Cc: </strong>kwrite-devel, domson, michaelh, ngraham, demsking, cullmann, sars, dhaumann<br /></div>