Fixed shortcut bugs
Fixed include bug Changed a few small things in the core
This commit is contained in:
@ -244,8 +244,6 @@ type
|
||||
procedure cmdLoadClick(Sender: TObject);
|
||||
procedure cmdRemoveClick(Sender: TObject);
|
||||
procedure cmdBrowseAMXXDirClick(Sender: TObject);
|
||||
procedure txtShortcutKeyDown(Sender: TObject; var Key: Word;
|
||||
Shift: TShiftState);
|
||||
procedure txtShortcutKeyPress(Sender: TObject; var Key: Char);
|
||||
procedure cmdResetShortcutsClick(Sender: TObject);
|
||||
procedure txtShortcutKeyUp(Sender: TObject; var Key: Word;
|
||||
@ -953,23 +951,6 @@ begin
|
||||
txtAMXXDir.Text := eStr;
|
||||
end;
|
||||
|
||||
procedure TfrmSettings.txtShortcutKeyDown(Sender: TObject; var Key: Word;
|
||||
Shift: TShiftState);
|
||||
begin
|
||||
if (Key = VK_SHIFT) or (Key = VK_CONTROL) or (Key = VK_MENU) then begin
|
||||
txtShortcut.Clear;
|
||||
if ssShift in Shift then
|
||||
txtShortcut.Text := txtShortcut.Text + 'Shift+';
|
||||
if ssCtrl in Shift then
|
||||
txtShortcut.Text := txtShortcut.Text + 'Ctrl+';
|
||||
if ssAlt in Shift then
|
||||
txtShortcut.Text := txtShortcut.Text + 'Alt+';
|
||||
Key := 0;
|
||||
end
|
||||
else
|
||||
txtShortcut.Text := ShortcutToText(Shortcut(Key, Shift));
|
||||
end;
|
||||
|
||||
procedure TfrmSettings.txtShortcutKeyPress(Sender: TObject; var Key: Char);
|
||||
begin
|
||||
Key := #0;
|
||||
|
Reference in New Issue
Block a user