XWIKI-9359: "D" keyboard shortcut doesn't work
* Add utility method to check the source view mode.