0
我希望下面的代碼會覆蓋它,因爲我正在分配新的東西。而是它執行兩種,選擇所有和我的消息框如何覆蓋ctrl + a從列表框中選擇全部?
private void EventSetter_OnHandler(object sender, KeyEventArgs e)
{
if (e.Key == Key.A && (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl)))
{
System.Windows.MessageBox.Show("ctrl a");
}
}
請幫助謝謝
'e.Handled = true'是否阻止全選? –
它不會阻止,相同的問題添加它 – RollRoll