mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 02:27:19 +00:00
2adf09129d
Tada!
26 lines
544 B
JavaScript
26 lines
544 B
JavaScript
/*\
|
|
title: $:/core/modules/utils/dom/keyboard.js
|
|
type: application/javascript
|
|
module-type: utils
|
|
|
|
Keyboard utilities; now deprecated. Instead, use $tw.keyboardManager
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"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
|
|
}
|
|
};
|
|
});
|
|
|
|
})();
|