summaryrefslogtreecommitdiff
path: root/src/wx/timeline.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-02-05 13:50:52 +0100
committerCarl Hetherington <cth@carlh.net>2023-02-05 13:50:52 +0100
commite8af431bd9bfc5f1d6aa33246bdd082bc8b2d17e (patch)
tree26ca3bdd4d9398f0a346f5c500332489662cf47e /src/wx/timeline.cc
parent49475a44169acac768d496d7aca232dacbb2ae6d (diff)
Delete in timeline removes content (#2370).
Diffstat (limited to 'src/wx/timeline.cc')
-rw-r--r--src/wx/timeline.cc11
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());
+ }
+}
+