| 2293 | } |
| 2294 | |
| 2295 | void 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 | |
| 2317 | void CFamiTrackerView::OnKeyDelete() |
| 2318 | { |
nothing calls this directly
no test coverage detected