Win32: fix invalid accelerator labels.
This commit is contained in:
parent
7e2b1b1d8d
commit
60f85f5a39
|
@ -183,6 +183,7 @@ std::string SolveSpace::MakeAcceleratorLabel(int accel) {
|
||||||
if(accel & GraphicsWindow::SHIFT_MASK) {
|
if(accel & GraphicsWindow::SHIFT_MASK) {
|
||||||
label += "Shift+";
|
label += "Shift+";
|
||||||
}
|
}
|
||||||
|
accel &= ~(GraphicsWindow::CTRL_MASK | GraphicsWindow::SHIFT_MASK);
|
||||||
if(accel >= GraphicsWindow::FUNCTION_KEY_BASE + 1 &&
|
if(accel >= GraphicsWindow::FUNCTION_KEY_BASE + 1 &&
|
||||||
accel <= GraphicsWindow::FUNCTION_KEY_BASE + 12) {
|
accel <= GraphicsWindow::FUNCTION_KEY_BASE + 12) {
|
||||||
label += ssprintf("F%d", accel - GraphicsWindow::FUNCTION_KEY_BASE);
|
label += ssprintf("F%d", accel - GraphicsWindow::FUNCTION_KEY_BASE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user