4 * Copyright, Moxiecode Systems AB
5 * Released under LGPL License.
7 * License: http://www.tinymce.com/license
8 * Contributing: http://www.tinymce.com/contributing
12 * This file exposes a set of the common KeyCodes for use. Please grow it as needed.
14 define("tinymce/util/VK", [
28 modifierPressed: function(e) {
29 return e.shiftKey || e.ctrlKey || e.altKey;
32 metaKeyPressed: function(e) {
33 // Check if ctrl or meta key is pressed also check if alt is false for Polish users
34 return (Env.mac ? e.ctrlKey || e.metaKey : e.ctrlKey) && !e.altKey;