1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-04-24 15:51:30 +00:00
Files
TiddlyWiki5/core/modules/utils/dom/keyboard.js
2025-03-16 16:56:59 +01:00

21 lines
463 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
}
};
});