2014-01-30 13:40:36 +00:00
|
|
|
/*\
|
|
|
|
title: $:/core/modules/utils/dom/keyboard.js
|
|
|
|
type: application/javascript
|
|
|
|
module-type: utils
|
|
|
|
|
2016-04-22 07:36:29 +00:00
|
|
|
Keyboard utilities; now deprecated. Instead, use $tw.keyboardManager
|
2014-01-30 13:40:36 +00:00
|
|
|
|
|
|
|
\*/
|
|
|
|
(function(){
|
|
|
|
|
|
|
|
/*jslint node: true, browser: true */
|
|
|
|
/*global $tw: false */
|
|
|
|
"use strict";
|
|
|
|
|
2016-04-22 07:36:29 +00:00
|
|
|
["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
|
2014-01-30 13:40:36 +00:00
|
|
|
}
|
2016-04-22 07:36:29 +00:00
|
|
|
};
|
|
|
|
});
|
2014-09-02 09:41:48 +00:00
|
|
|
|
2014-01-30 13:40:36 +00:00
|
|
|
})();
|