ayrozjlc/yii2-hotkeys

AssetBundle for hotkeys.js

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0 2020-10-06 23:43 UTC

This package is auto-updated.

Last update: 2022-09-28 00:53:01 UTC


README

AssetBundle for hotkeys.js

Installation

Composer

composer require --prefer-dist "ayrozjlc/yii2-hotkeys:*"

or add

"ayrozjlc/yii2-hotkeys": "dev-master"

to the require section of your composer.json file.

Usage

in view (for example: @app/views/layouts/main.php)

// ...
use ayrozjlc\hotkeys\HotkeysAsset;
// ...
HotkeysAsset::register($this);

or add to your assets/AppAsset.php

public $depends = [
    // ...
    'ayrozjlc\hotkeys\HotkeysAsset',
];

Documentation: hotkeysjs