Skip to content

Commit 86176dc

Browse files
committed
* FIX:[LE]Shortcut
1 parent a0a0cf8 commit 86176dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/Editors/XrECore/Editor/UI_MainCommand.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,9 +731,9 @@ bool TUI::ApplyShortCut(DWORD Key, TShiftState Shift)
731731

732732
xr_shortcut SC;
733733
SC.key = Key;
734-
SC.ext.assign (u8((Shift|ssShift?xr_shortcut::flShift:0)|
735-
(Shift|ssCtrl ?xr_shortcut::flCtrl:0)|
736-
(Shift|ssAlt ?xr_shortcut::flAlt:0)));
734+
SC.ext.assign (u8((Shift&ssShift?xr_shortcut::flShift:0)|
735+
(Shift&ssCtrl ?xr_shortcut::flCtrl:0)|
736+
(Shift&ssAlt ?xr_shortcut::flAlt:0)));
737737
SESubCommand* SUB = FindCommandByShortcut(SC);
738738

739739
if (!SUB||SUB->parent->global_shortcut) return false;
@@ -753,7 +753,7 @@ bool TUI::ApplyGlobalShortCut(DWORD Key, TShiftState Shift)
753753
(Shift & ssAlt ? xr_shortcut::flAlt : 0)));
754754

755755
if (UIKeyPressForm::SetResult(SC))return true;
756-
if (Key==VK_OEM_3)ExecCommand (COMMAND_RENDER_FOCUS); return true;
756+
if (Key == VK_OEM_3) { ExecCommand(COMMAND_RENDER_FOCUS); return true; }
757757

758758

759759
SESubCommand* SUB = FindCommandByShortcut(SC);

0 commit comments

Comments
 (0)