Skip to content
No description, website, or topics provided.
JavaScript PHP HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Controller
DependencyInjection
Resources
Tests/Controller
AtwixHotkeysBundle.php
Readme.html
Readme.md
composer.json

Readme.md

Atwix Hotkeys

Atwix Hotkeys extension provides an ability to use single key for accessing to different UI elements.

Base hotkeys are:

  • 's' - Open search dialog.
  • 'c' - Open shortcuts dialog.
  • 'r' - Return to home page.
  • 'f' - Open favourites tab.
  • 'h' - Open history tab.
  • 'm' - Open most viewed tab.
  • 'p' - Open pinbar tab.

Installation

Use standard Package Manager in Oro Platform to find and install the extension.

Or use as dependency in composer:

"require": {
        "atwix/hotkeys": "1.0",
    }

Custom hotkeys

You are able to map your own keys and maps by passing parameters to the hotkeysHandler() object. Just override src/Atwix/Bundle/HotkeysBundle/Resources/views/Js/hotkeys.js.twig and pass your own settings to the object.

Example: open user menu by pressing 'u' button

{% if true == isDesktopVersion() and true == oro_config_value('atwix_hotkeys.hotkeys_enabled') %}
<script type="text/javascript">
    require(['jquery', 'atwixhotkeys/js/hotkeys'], function($) {
        $(function() {
            var customKeys = {
                usermenu: ['85', '.user-menu .dropdown-toggle', 'click']
            }
            var oroHotkeys = new hotkeysHandler(customKeys);
        });
    });
</script>
{% endif %}
You can’t perform that action at this time.