mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-10 00:32:27 -07:00
* fix: apply automatic eslint fixes * lint: allow hashbang comment for tiddlywiki.js * lint: first back of manual lint fixes for unused vars * lint: added more fixes for unused vars * lint: missed files * lint: updated eslint config with selected rules from #9669
20 lines
464 B
JavaScript
20 lines
464 B
JavaScript
/*\
|
|
title: $:/core/modules/utils/dom/keyboard.js
|
|
type: application/javascript
|
|
module-type: utils
|
|
|
|
Keyboard utilities; now deprecated. Instead, use $tw.keyboardManager
|
|
|
|
\*/
|
|
|
|
"use strict";
|
|
|
|
["parseKeyDescriptor","checkKeyDescriptor"].forEach(function(method) {
|
|
exports[method] = function() {
|
|
if($tw.keyboardManager) {
|
|
return $tw.keyboardManager[method].apply($tw.keyboardManager,Array.prototype.slice.call(arguments,0));
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|
|
});
|