<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, VDG, apol.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-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/D8446" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This was lost by the introduction of the default action as the MouseArea steals events from the TextField below.<br />
To address this, selecting text and click handling has been implemented manually. Furthermore, the mouse cursor is changed to an IBeam cursor and turns into a hand when above hyperlinks whose URL can now also be copied separately from its text in the context menu.</p>

<p>BUG: 386118<br />
FIXED-IN: 5.12.0</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Clicking action buttons still works</li>
<li class="remarkup-list-item">Clicking a notification with default action will still trigger the default action. An action without will not do anything, ie. the dialog won't close, just as before</li>
<li class="remarkup-list-item">Clicking a hyperlink will open it</li>
<li class="remarkup-list-item">Click vs select drag feels natural, I implemented it using manhattan length similarly to MouseEventListener</li>
<li class="remarkup-list-item">The cursor is an IBeam over the entire body text area and turns into a pointing hand when ontop of a hyperlink</li>
<li class="remarkup-list-item">Right click menu "Select All" entries select all text, "Copy" copies the text. Ontop of Hyperlinks the "Copy Link" entry copies the hyperlink's URL</li>
<li class="remarkup-list-item">Notification still seems to timeout properly, with or without user interaction</li>
</ul>

<p>Needs <a href="https://phabricator.kde.org/D8445" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">D8445</a> (ungrab mouse hack) or else after having opened the context menu, you continue randomly selecting text as the MouseArea gets confused as to whether the mouse is pressed or not.</p>

<p>Only quirk I noticed is that while selecting text will scroll down the view as needed it won't work to scroll back up but whatever.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8446" rel="noreferrer">https://phabricator.kde.org/D8446</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/notifications/package/contents/ui/NotificationItem.qml</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, VDG, apol<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>