private void Tablo_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Escape: if (Tablo.IsEditorFocused) { insUptNavigator.Navigator.Buttons.DoClick(insUptNavigator.Navigator.Buttons.CancelEdit); } else { OwnerForm.Close(); } break; case Keys.Tab: case Keys.Left: case Keys.Right: case Keys.Up: case Keys.Down: insUptNavigator.Navigator.Buttons.DoClick(insUptNavigator.Navigator.Buttons.EndEdit); break; case Keys.Insert when e.Shift: HareketEkle(); break; case Keys.Delete when e.Modifiers == Keys.Shift: HareketSil(); break; case Keys.F3: OpenEntity(); break; case Keys.T when e.Control: IptalEt(); break; case Keys.R when e.Control: IptalGeriAl(); break; case Keys.F6: BelgeHareketleri(); break; } }
private void Tablo_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Escape: if (Tablo.IsEditorFocused) { insUptNavigator.Navigator.Buttons.DoClick(insUptNavigator.Navigator.Buttons.CancelEdit); } else { OwnerForm.Close(); } break; case Keys.Tab: case Keys.Left: case Keys.Right: case Keys.Up: case Keys.Down: insUptNavigator.Navigator.Buttons.DoClick(insUptNavigator.Navigator.Buttons.EndEdit); break; case Keys.Insert when e.Shift: HareketEkle(); break; case Keys.Delete when e.Modifiers == Keys.Shift: //CTRL+SHİFT+DELETE İLE ÇAKIŞMAYI ÖNLEMEK İÇİN e.Modifiers == Keys.Shift AYNU ANDA 2 TUŞA BASILMASINI ARAR 3. TUŞA BASILINCA DEVREDEN ÇIKAR HareketSil(); break; case Keys.F3: OpenEntity(); break; case Keys.T when e.Control: IptalEt(); break; case Keys.R when e.Control: IptalGeriAl(); break; case Keys.F6: BelgeHareketleri(); break; } }