How to disable TMemo's "default shortcuts" in Windows? lazarus / 31-LCL ---------------------------------------------------------------------- tomitomy · 2018-05-12 05:17 Hi, everybody. I have a question, how to disable TMemo's "default shortcut" in Windows, such as Ctrl+Z, Ctlr+Y, I don't need it, it will interfere with normal operation. I have used custom "popup menu" replaces the system default "popup menu", but when my "Undo" action is disabled, the system will capture Ctrl+Z and perform its own undo process. How can I disable it? Can someone help me? ---------------------------------------------------------------------- balazsszekely · 2018-05-12 05:32 Like this: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.Memo1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);begin  if (ssCtrl in Shift) and (Key = 90) then //disable Ctrl + Z  begin    Key := 0;    Exit;  end;end; ---------------------------------------------------------------------- tomitomy · 2018-05-12 05:44 Thank you GetMem, your code work very well in my program, I'm very happy!