Cleanup QuickEditor code
I use a modified version of the QuickEditor
class in my translator app. This PR contains some minor optimizations and simplifications that I made. I hope you find them useful. Each commit is a separate edit, feel free to disagree with any of them - I'll delete it. Squashed.
Edited by Hennadii Chernyshchyk