Improved behavior of right-click in editor.