尝试在按下/松开键事件中将其设置为只读。 在按下键时,将其设置为richedit1.readonly := false; 然后在松开键时设置 richedit1.readonly := true; 它可以工作。它甚至禁用了粘贴功能。