We want to enable the shortcut Ctrl+U to open up Usersnap. Based on Usersnap documentation, we need to fix up the code a bit. Here’s what they say:

If your users press Ctrl+U, Usersnap is opened automatically.

You can enable the keyboard shortcut with the shortcut option:

<script type="text/javascript">
var _usersnapconfig = {
     shortcut: true
};
</script>

Comments

iamEAP created an issue. See original summary.

iamEAP’s picture

Status: Active » Needs review
StatusFileSize
new3.6 KB

Also adds "report mode" so that you can lock down usersnap visibility / access to just those who know about the shortcut (like a QA team).

iamEAP’s picture

Status: Needs review » Reviewed & tested by the community

Tested on simplytest.me. Module continues to function in the expected way after patching. Configuring the use of the keyboard shortcut functions as expected. Setting the button to be hidden also works as expected and the keyboard shortcut continues to work.

Added documentation to the readme and merging.

  • iamEAP committed 2258c3d on 7.x-1.x
    Issue #2706565 by iamEAP: Support Ctrl+U keyboard shortcut
    
iamEAP’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Moving to the 8.x queue for patch porting.