mirror of https://github.com/buggins/dlangui.git
more keycodes; increase font size for tabs
This commit is contained in:
parent
84bf895d06
commit
f64b2c55c6
|
@ -720,6 +720,10 @@ enum KeyCode : uint {
|
||||||
KEY_Y = 0x59,
|
KEY_Y = 0x59,
|
||||||
/// Z
|
/// Z
|
||||||
KEY_Z = 0x5a,
|
KEY_Z = 0x5a,
|
||||||
|
/// [
|
||||||
|
KEY_BRACKETOPEN = 0xDB,
|
||||||
|
/// ]
|
||||||
|
KEY_BRACKETCLOSE = 0xDD,
|
||||||
/// key /
|
/// key /
|
||||||
KEY_DIVIDE = 0x6F,
|
KEY_DIVIDE = 0x6F,
|
||||||
/// key +
|
/// key +
|
||||||
|
|
|
@ -658,14 +658,9 @@ class Win32Window : Window {
|
||||||
updateKeyFlags(action, KeyFlag.Alt);
|
updateKeyFlags(action, KeyFlag.Alt);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (GetKeyState(VK_CONTROL) & 0x8000)
|
updateKeyFlags((GetKeyState(VK_CONTROL) & 0x8000) != 0 ? KeyAction.KeyDown : KeyAction.KeyUp, KeyFlag.Control);
|
||||||
_keyFlags |= KeyFlag.Control;
|
updateKeyFlags((GetKeyState(VK_SHIFT) & 0x8000) != 0 ? KeyAction.KeyDown : KeyAction.KeyUp, KeyFlag.Shift);
|
||||||
else
|
updateKeyFlags((GetKeyState(VK_MENU) & 0x8000) != 0 ? KeyAction.KeyDown : KeyAction.KeyUp, KeyFlag.Alt);
|
||||||
_keyFlags &= ~KeyFlag.Control;
|
|
||||||
if (GetKeyState(VK_SHIFT) & 0x8000)
|
|
||||||
_keyFlags |= KeyFlag.Shift;
|
|
||||||
else
|
|
||||||
_keyFlags &= ~KeyFlag.Shift;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (keyCode == 0xBF)
|
if (keyCode == 0xBF)
|
||||||
|
|
|
@ -116,7 +116,7 @@
|
||||||
backgroundImageId="tab_btn_dark_up"
|
backgroundImageId="tab_btn_dark_up"
|
||||||
/>
|
/>
|
||||||
<style id="TAB_UP_BUTTON_DARK_TEXT"
|
<style id="TAB_UP_BUTTON_DARK_TEXT"
|
||||||
fontSize="10"
|
fontSize="12"
|
||||||
textColor="#E0E0E0"
|
textColor="#E0E0E0"
|
||||||
align="Center"
|
align="Center"
|
||||||
>
|
>
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
</style>
|
</style>
|
||||||
<style id="TAB_UP_BUTTON_TEXT"
|
<style id="TAB_UP_BUTTON_TEXT"
|
||||||
textColor="#000000"
|
textColor="#000000"
|
||||||
fontSize="10"
|
fontSize="12"
|
||||||
align="Center"
|
align="Center"
|
||||||
>
|
>
|
||||||
<state state_selected="true" state_focused="true" textColor="#000000"/>
|
<state state_selected="true" state_focused="true" textColor="#000000"/>
|
||||||
|
|
Loading…
Reference in New Issue