<table><tr><td style="">mayankchoudhary created this revision.<br />Herald added a project: Okular.<br />Herald added a subscriber: okular-devel.<br />mayankchoudhary 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/D22118">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>If we click on a sidebar item to collapse it, the focus remains on the sidebar item list and pressing the up/down arrow, j, k or page up/down key doesn't scroll the document, instead iterates through the sidebar items. Applying this patch, the focus shifts to the document on collapsing the sidebar.<br />
If the sidebar is collapsed when the document is not opened, the focus shifts away from it.</p>
<p>BUG: 213508</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Open a PDF document</li>
<li class="remarkup-list-item">The sidebar becomes active showing contents or thumbnails</li>
<li class="remarkup-list-item">The user doesn't want to see them, so clicks on the sidebar active item to hide the contents/thumbnails pane</li>
<li class="remarkup-list-item">To scroll the page, the user presses the up/down arrow, j, k or page up/down key</li>
<li class="remarkup-list-item">The sidebar items iterates instead of scrolling of document</li>
<li class="remarkup-list-item">Applying this patch, the document should be scrolled in step 4</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22118">https://phabricator.kde.org/D22118</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>part.cpp<br />
ui/sidebar.cpp<br />
ui/sidebar.h</div></div></div><br /><div><strong>To: </strong>mayankchoudhary<br /><strong>Cc: </strong>okular-devel, fbampaloukas, joaonetto, tfella, ngraham, darcyshen, aacid<br /></div>