mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
remove right alt key
This commit is contained in:
parent
c4c720fe84
commit
9653c3c69c
@ -565,7 +565,7 @@ void TConfigForm::ApplyTranslation(TIniFile *ini)
|
|||||||
ToggleWindowedKeyLbl->Caption = GetKeyText(VK_MENU) + L" +";
|
ToggleWindowedKeyLbl->Caption = GetKeyText(VK_MENU) + L" +";
|
||||||
MaximizeWindowKeyLbl->Caption = GetKeyText(VK_MENU) + L" +";
|
MaximizeWindowKeyLbl->Caption = GetKeyText(VK_MENU) + L" +";
|
||||||
UnlockCursor1KeyLbl->Caption = GetKeyText(VK_CONTROL) + L" +";
|
UnlockCursor1KeyLbl->Caption = GetKeyText(VK_CONTROL) + L" +";
|
||||||
UnlockCursor2KeyLbl->Caption = GetKeyText(VK_RMENU) + L" +";
|
UnlockCursor2KeyLbl->Caption = "R " + GetKeyText(VK_MENU) + L" +";
|
||||||
}
|
}
|
||||||
|
|
||||||
void __fastcall TConfigForm::DisplayBtnClick(TObject *Sender)
|
void __fastcall TConfigForm::DisplayBtnClick(TObject *Sender)
|
||||||
@ -1049,9 +1049,6 @@ void __fastcall TConfigForm::HotkeyEdtKeyDown(TObject *Sender, WORD &Key, TShift
|
|||||||
if (Key == VK_DELETE || Key == VK_BACK) {
|
if (Key == VK_DELETE || Key == VK_BACK) {
|
||||||
edit->Text = L"";
|
edit->Text = L"";
|
||||||
}
|
}
|
||||||
else if (GetAsyncKeyState(VK_RMENU) & 0x8000) {
|
|
||||||
edit->Text = GetKeyText(VK_RMENU);
|
|
||||||
}
|
|
||||||
else if (GetAsyncKeyState(VK_RCONTROL) & 0x8000) {
|
else if (GetAsyncKeyState(VK_RCONTROL) & 0x8000) {
|
||||||
edit->Text = GetKeyText(VK_RCONTROL);
|
edit->Text = GetKeyText(VK_RCONTROL);
|
||||||
}
|
}
|
||||||
@ -1081,10 +1078,6 @@ WORD TConfigForm::GetKeyCode(System::UnicodeString key)
|
|||||||
return VK_PAUSE;
|
return VK_PAUSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key == L"R " + ShortCutToText(VK_MENU)) {
|
|
||||||
return VK_RMENU;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (key == L"R " + ShortCutToText(VK_CONTROL)) {
|
if (key == L"R " + ShortCutToText(VK_CONTROL)) {
|
||||||
return VK_RCONTROL;
|
return VK_RCONTROL;
|
||||||
}
|
}
|
||||||
@ -1102,10 +1095,6 @@ System::UnicodeString TConfigForm::GetKeyText(WORD key)
|
|||||||
return L"Pause_";
|
return L"Pause_";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key == VK_RMENU) {
|
|
||||||
return L"R " + ShortCutToText(VK_MENU);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (key == VK_RCONTROL) {
|
if (key == VK_RCONTROL) {
|
||||||
return L"R " + ShortCutToText(VK_CONTROL);
|
return L"R " + ShortCutToText(VK_CONTROL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user