Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.js')
-rw-r--r--libs/bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/libs/bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.js b/libs/bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.js
deleted file mode 100644
index 022ceb71dc..0000000000
--- a/libs/bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * adds a bindGlobal method to Mousetrap that allows you to
- * bind specific keyboard shortcuts that will still work
- * inside a text input field
- *
- * usage:
- * Mousetrap.bindGlobal('ctrl+s', _saveChanges);
- */
-/* global Mousetrap:true */
-Mousetrap = (function(Mousetrap) {
- var _globalCallbacks = {},
- _originalStopCallback = Mousetrap.stopCallback;
-
- Mousetrap.stopCallback = function(e, element, combo, sequence) {
- if (_globalCallbacks[combo] || _globalCallbacks[sequence]) {
- return false;
- }
-
- return _originalStopCallback(e, element, combo);
- };
-
- Mousetrap.bindGlobal = function(keys, callback, action) {
- Mousetrap.bind(keys, callback, action);
-
- if (keys instanceof Array) {
- for (var i = 0; i < keys.length; i++) {
- _globalCallbacks[keys[i]] = true;
- }
- return;
- }
-
- _globalCallbacks[keys] = true;
- };
-
- return Mousetrap;
-}) (Mousetrap);