mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 13:23:13 -07:00
Revert unrelated optimization
This commit is contained in:
parent
a01f7a9e3c
commit
afbb7243fb
1 changed files with 38 additions and 7 deletions
|
@ -747,17 +747,48 @@ namespace CalculatorApp
|
||||||
{
|
{
|
||||||
int viewId = Utilities.GetWindowId();
|
int viewId = Utilities.GetWindowId();
|
||||||
|
|
||||||
if (controlKeyPressed && !altPressed)
|
if (controlKeyPressed)
|
||||||
{
|
{
|
||||||
return shiftKeyPressed ? s_VirtualKeyControlShiftChordsForButtons[viewId] : s_VirtualKeyControlChordsForButtons[viewId];
|
if (altPressed)
|
||||||
}
|
{
|
||||||
else if (altPressed && !controlKeyPressed)
|
return null;
|
||||||
{
|
}
|
||||||
return shiftKeyPressed ? null : s_VirtualKeyAltChordsForButtons[viewId];
|
else
|
||||||
|
{
|
||||||
|
if (shiftKeyPressed)
|
||||||
|
{
|
||||||
|
return s_VirtualKeyControlShiftChordsForButtons[viewId];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return s_VirtualKeyControlChordsForButtons[viewId];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return shiftKeyPressed ? s_VirtualKeyShiftChordsForButtons[viewId] : s_virtualKey[viewId];
|
if (altPressed)
|
||||||
|
{
|
||||||
|
if (shiftKeyPressed)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return s_VirtualKeyAltChordsForButtons[viewId];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (shiftKeyPressed)
|
||||||
|
{
|
||||||
|
return s_VirtualKeyShiftChordsForButtons[viewId];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return s_virtualKey[viewId];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue