init
This commit is contained in:
37
public/tinymce/classes/util/VK.js
Normal file
37
public/tinymce/classes/util/VK.js
Normal file
@ -0,0 +1,37 @@
|
||||
/**
|
||||
* VK.js
|
||||
*
|
||||
* Copyright, Moxiecode Systems AB
|
||||
* Released under LGPL License.
|
||||
*
|
||||
* License: http://www.tinymce.com/license
|
||||
* Contributing: http://www.tinymce.com/contributing
|
||||
*/
|
||||
|
||||
/**
|
||||
* This file exposes a set of the common KeyCodes for use. Please grow it as needed.
|
||||
*/
|
||||
define("tinymce/util/VK", [
|
||||
"tinymce/Env"
|
||||
], function(Env) {
|
||||
return {
|
||||
BACKSPACE: 8,
|
||||
DELETE: 46,
|
||||
DOWN: 40,
|
||||
ENTER: 13,
|
||||
LEFT: 37,
|
||||
RIGHT: 39,
|
||||
SPACEBAR: 32,
|
||||
TAB: 9,
|
||||
UP: 38,
|
||||
|
||||
modifierPressed: function(e) {
|
||||
return e.shiftKey || e.ctrlKey || e.altKey;
|
||||
},
|
||||
|
||||
metaKeyPressed: function(e) {
|
||||
// Check if ctrl or meta key is pressed also check if alt is false for Polish users
|
||||
return (Env.mac ? e.ctrlKey || e.metaKey : e.ctrlKey) && !e.altKey;
|
||||
}
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user