Qt's Menu closes the menu when action is triggered and to overcome this default behaviour added a custom event to be called when action is clicked. Fixed some formatting related bugs. fixes #2349
This will highlight any option in the text formatting menu whose formatting matches the selected text formatting Closes #1931
Closes #1804