<table><tr><td style="">mglb created this revision.<br />mglb added a reviewer: Konsole.<br />Restricted Application added a project: Konsole.<br />mglb 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/D11763">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Do not allow sending mouse events and emulated up/down keys to programs when read-only mode is enabled.</li>
<li class="remarkup-list-item">Set the currentTerminalDisplay before sending key events, like in keyPressEvent.</li>
<li class="remarkup-list-item">The code is restructured a bit to easily separate code allowed only when read-only mode is disabled.</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">start Konsole</li>
<li class="remarkup-list-item">run <tt style="background: #ebebeb; font-size: 13px;">man man</tt> and do not press any key</li>
<li class="remarkup-list-item">try to scroll using mouse wheel - the text should scroll</li>
<li class="remarkup-list-item">exit</li>
</ul>

<ul class="remarkup-list">
<li class="remarkup-list-item">start Konsole</li>
<li class="remarkup-list-item">run <tt style="background: #ebebeb; font-size: 13px;">man man</tt></li>
<li class="remarkup-list-item">turn on read only mode</li>
<li class="remarkup-list-item">try to scroll using mouse wheel - the text should not scroll</li>
<li class="remarkup-list-item">turn off read only mode</li>
<li class="remarkup-list-item">try to scroll - the text should scroll normally, without jump too far</li>
<li class="remarkup-list-item">exit</li>
</ul>

<ul class="remarkup-list">
<li class="remarkup-list-item">start Konsole</li>
<li class="remarkup-list-item">run <tt style="background: #ebebeb; font-size: 13px;">man man</tt></li>
<li class="remarkup-list-item">press Down key</li>
<li class="remarkup-list-item">turn on read only mode</li>
<li class="remarkup-list-item">try to scroll using mouse wheel - the text should not scroll</li>
<li class="remarkup-list-item">turn off read only mode</li>
<li class="remarkup-list-item">try to scroll - the text should scroll normally, without jump too far</li>
<li class="remarkup-list-item">exit</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>BRANCH</strong><div><div>arc/properly-handle-wheel-in-read-only-mode</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11763">https://phabricator.kde.org/D11763</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/TerminalDisplay.cpp</div></div></div><br /><div><strong>To: </strong>mglb, Konsole<br /><strong>Cc: </strong>Konsole, herrold, ngraham, hindenburg<br /></div>