diff options
Diffstat (limited to 'src/wx/timeline.cc')
| -rw-r--r-- | src/wx/timeline.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 604a00f39..d2443c8a9 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -950,3 +950,14 @@ Timeline::zoom_all () _labels_canvas->Scroll (0, 0); Refresh (); } + + +void +Timeline::keypress(wxKeyEvent const& event) +{ + if (event.GetKeyCode() == WXK_DELETE) { + auto film = _film.lock(); + film->remove_content(selected_content()); + } +} + |
