MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnKeyDelete

Method OnKeyDelete

Source/FamiTrackerView.cpp:2317–2338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2315}
2316
2317void CFamiTrackerView::OnKeyDelete()
2318{
2319 // Delete row data
2320 bool bShiftPressed = IsShiftPressed();
2321
2322 if (PreventRepeat(VK_DELETE, true) || !m_bEditEnable) // // //
2323 return;
2324
2325 if (m_pPatternEditor->IsSelecting()) {
2326 OnEditDelete();
2327 }
2328 else {
2329 bool bPullUp = FTEnv.GetSettings()->General.bPullUpDelete || bShiftPressed;
2330 auto pAction = std::make_unique<CPActionDeleteRow>(bPullUp, false); // // //
2331 auto &Action = *pAction; // TODO: remove
2332 if (AddAction(std::move(pAction)))
2333 if (!bPullUp) {
2334 StepDown();
2335 Action.SaveRedoState(static_cast<CMainFrame &>(*GetParentFrame())); // // //
2336 }
2337 }
2338}
2339
2340void CFamiTrackerView::KeyIncreaseAction()
2341{

Callers

nothing calls this directly

Calls 3

IsSelectingMethod · 0.45
GetSettingsMethod · 0.45
SaveRedoStateMethod · 0.45

Tested by

no test coverage detected