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

Method OnKeyBackspace

Source/FamiTrackerView.cpp:2295–2315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2293}
2294
2295void CFamiTrackerView::OnKeyBackspace()
2296{
2297 // Pull up row
2298 if (!m_bEditEnable) // // //
2299 return;
2300
2301 if (m_pPatternEditor->IsSelecting()) {
2302 AddAction(std::make_unique<CPActionDeleteAtSel>());
2303 }
2304 else {
2305 if (PreventRepeat(VK_BACK, true))
2306 return;
2307 auto pAction = std::make_unique<CPActionDeleteRow>(true, true); // // //
2308 auto &Action = *pAction; // TODO: remove
2309 if (AddAction(std::move(pAction))) {
2310 m_pPatternEditor->MoveUp(1);
2311 InvalidateCursor();
2312 Action.SaveRedoState(static_cast<CMainFrame &>(*GetParentFrame())); // // //
2313 }
2314 }
2315}
2316
2317void CFamiTrackerView::OnKeyDelete()
2318{

Callers

nothing calls this directly

Calls 3

MoveUpMethod · 0.80
IsSelectingMethod · 0.45
SaveRedoStateMethod · 0.45

Tested by

no test coverage detected