TheDelphiBeginner
Programmer
Is there a way to intercept Alt+Esc key combination, in a Delphi application?
I tried the following:
begin
if ssAlt in Shift then
case Key of
27:
begin
ShowMessage('Alt + Esc is pressed');
end;
end;
end;
but Key gets a value of '18' (which is 'Alt') during the run-time when goes through the loop.
However, when I use Case of "N" (for example), it works fine.
Do you think Alt+Esc is a 'protected' Windows combination, that cannot be disabled, kind of like Ctrl+Alt+Esc?
I tried the following:
begin
if ssAlt in Shift then
case Key of
27:
begin
ShowMessage('Alt + Esc is pressed');
end;
end;
end;
but Key gets a value of '18' (which is 'Alt') during the run-time when goes through the loop.
However, when I use Case of "N" (for example), it works fine.
Do you think Alt+Esc is a 'protected' Windows combination, that cannot be disabled, kind of like Ctrl+Alt+Esc?