diff --git a/source/dcell/color.d b/source/dcell/color.d index 156fec4..e6fbc74 100644 --- a/source/dcell/color.d +++ b/source/dcell/color.d @@ -171,7 +171,7 @@ enum Color : uint private static immutable uint[Color] rgbValues; private static immutable Color[uint] palValues; -shared static this() @safe +shared static this() @trusted { rgbValues[Color.black] = 0x000000; rgbValues[Color.maroon] = 0x800000; diff --git a/source/dcell/parser.d b/source/dcell/parser.d index ac544c4..2262f09 100644 --- a/source/dcell/parser.d +++ b/source/dcell/parser.d @@ -265,8 +265,8 @@ immutable KeyCode[int] winKeys = [ 0x03: KeyCode(Key.cancel), // vkCancel 0x08: KeyCode(Key.backspace), // vkBackspace 0x09: KeyCode(Key.tab), // vkTab + 0x0c: KeyCode(Key.clear), // vClear 0x0d: KeyCode(Key.enter), // vkReturn - 0x12: KeyCode(Key.clear), // vClear 0x13: KeyCode(Key.pause), // vkPause 0x1b: KeyCode(Key.esc), // vkEscape 0x21: KeyCode(Key.pgUp), // vkPrior @@ -1027,7 +1027,7 @@ private: { chr = p0; } - else if (key == 0x11 || key == 0x13 || key == 0x14) + else if (p0 == 0x10 || p0 == 0x11 || p0 == 0x12 || p0 == 0x14) { // lone modifiers return;