怎么禁用XP系统的ctrl+z快捷键?

来源:百度知道 编辑:UC知道 时间:2024/06/06 18:57:05
对微软的这个快捷键设置极为不满! 和CTRL+C和CTRL+V如此接近,经常导致我的误操作!很郁闷啊!哪位大侠给个详细的方法帮帮我禁用这个快捷键!

谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢!!!!!!!!!!!!!!!!!!!!

你可以在 onKeyPress Event 中判断是否为特殊的
按键
在 memo 中...可以写在 onkeyPress
但在 richedit 中..不能写在 onkeypress...
只能写在 OnkeyDown..
例如:
>Ctrl-Z 时 Ord(Key) = 26
>Ctrl-C 时 Ord(Key) = 3
>那就将 Key 设为 #0 就可以了 (当作没按)
>如下:
>procedure TForm1.Memo1KeyPress(Sender: TObject; var Key: Char);
>begin
>if (ord(key) = 26) then key:=#0; //ctrl-z
>if (ord(key) = 3 ) then key:=#0; // ctrl-c
>if (ord(key) = 22) then key:=#0; // ctrl-v
>end;

开一个QQ之类的软件,把它的系统热键设置为Ctrl+Z。然后如果按错了就弹出的是QQ~~