Fix dirty state calculations for inline editors with clipboard events.

Review Request #11109 — Created Aug. 1, 2020 and submitted

Information

Review Board
release-3.0.x
e3cf461...

Reviewers

When clipboard events are triggered via the UI rather than the keyboard
(for example, right-click menu options or middle-click paste), it
wouldn't trigger an update of the dirty state, resulting in the editor
resetting when the "OK" button was clicked. This is trivially fixed by
updating the dirty state when we get cut or paste events.

Used the right-click menu to edit a field with both cut and paste
operations. Saw that the contents were correctly saved when clicking
"OK" with both markdown and plain-text modes.

chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (e5df06c)