more keycodes; increase font size for tabs

This commit is contained in:
Vadim Lopatin 2015-02-11 09:34:37 +03:00
parent 84bf895d06
commit f64b2c55c6
3 changed files with 9 additions and 10 deletions

View File

@ -720,6 +720,10 @@ enum KeyCode : uint {
KEY_Y = 0x59,
/// Z
KEY_Z = 0x5a,
/// [
KEY_BRACKETOPEN = 0xDB,
/// ]
KEY_BRACKETCLOSE = 0xDD,
/// key /
KEY_DIVIDE = 0x6F,
/// key +

View File

@ -658,14 +658,9 @@ class Win32Window : Window {
updateKeyFlags(action, KeyFlag.Alt);
break;
default:
if (GetKeyState(VK_CONTROL) & 0x8000)
_keyFlags |= KeyFlag.Control;
else
_keyFlags &= ~KeyFlag.Control;
if (GetKeyState(VK_SHIFT) & 0x8000)
_keyFlags |= KeyFlag.Shift;
else
_keyFlags &= ~KeyFlag.Shift;
updateKeyFlags((GetKeyState(VK_CONTROL) & 0x8000) != 0 ? KeyAction.KeyDown : KeyAction.KeyUp, KeyFlag.Control);
updateKeyFlags((GetKeyState(VK_SHIFT) & 0x8000) != 0 ? KeyAction.KeyDown : KeyAction.KeyUp, KeyFlag.Shift);
updateKeyFlags((GetKeyState(VK_MENU) & 0x8000) != 0 ? KeyAction.KeyDown : KeyAction.KeyUp, KeyFlag.Alt);
break;
}
if (keyCode == 0xBF)

View File

@ -116,7 +116,7 @@
backgroundImageId="tab_btn_dark_up"
/>
<style id="TAB_UP_BUTTON_DARK_TEXT"
fontSize="10"
fontSize="12"
textColor="#E0E0E0"
align="Center"
>
@ -135,7 +135,7 @@
</style>
<style id="TAB_UP_BUTTON_TEXT"
textColor="#000000"
fontSize="10"
fontSize="12"
align="Center"
>
<state state_selected="true" state_focused="true" textColor="#000000"/>