/// <reference path="leaf.ts"/>
namespace Leaf {
    export namespace Key {
        Key["0"] = 48;
        Key["1"] = 49;
        Key["2"] = 50;
        Key["3"] = 51;
        Key["4"] = 52;
        Key["5"] = 53;
        Key["6"] = 54;
        Key["7"] = 55;
        Key["8"] = 56;
        Key["9"] = 57;
        export let cmd = 224
        let browser = Leaf.Util.browser
        if (browser) {
            if (browser.name === "firefox") {
                Key.cmd = 224
            }
            else if (browser.name === "opera") {
                Key.cmd = 17
            } else {
                Key.cmd = 91
            }
        } else {

            Key.cmd = 91
        }
        export let a = 65;
        export let b = 66;
        export let c = 67;
        export let d = 68;
        export let e = 69;
        export let f = 70;
        export let g = 71;
        export let h = 72;
        export let i = 73;
        export let j = 74;
        export let k = 75;
        export let l = 76;
        export let m = 77;
        export let n = 78;
        export let o = 79;
        export let p = 80;
        export let q = 81;
        export let r = 82;
        export let s = 83;
        export let t = 84;
        export let u = 85;
        export let v = 86;
        export let w = 87;
        export let x = 88;
        export let y = 89;
        export let z = 90;
        export let space = 32;
        export let shift = 16;
        export let ctrl = 17;
        export let alt = 18;
        export let left = 37;
        export let up = 38;
        export let right = 39;
        export let down = 40;
        export let enter = 13;
        export let backspace = 8;
        export let escape = 27;
        export let del = 46
        Key["delete"] = 46
        export let esc = 27;
        export let pageup = 33
        export let pagedown = 34
        export let tab = 9;
        export let home = 36
        export let end = 35
        export let quote = 222
        export let openBracket = 219
        export let closeBracket = 221
        export let backSlash = 220
        export let slash = 191
        export let equal = 187
        export let comma = 188
        export let period = 190
        export let dash = 189
        export let semiColon = 186
        export let graveAccent = 192

    }
    export namespace Mouse {
        export let left = 0
        export let middle = 1
        export let right = 2
    }
}
