summaryrefslogtreecommitdiff
path: root/src/wx/timeline_dialog.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_dialog.cc
parent49475a44169acac768d496d7aca232dacbb2ae6d (diff)
Delete in timeline removes content (#2370).
Diffstat (limited to 'src/wx/timeline_dialog.cc')
-rw-r--r--src/wx/timeline_dialog.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wx/timeline_dialog.cc b/src/wx/timeline_dialog.cc
index 0d05e66d6..d6c784387 100644
--- a/src/wx/timeline_dialog.cc
+++ b/src/wx/timeline_dialog.cc
@@ -95,6 +95,8 @@ TimelineDialog::TimelineDialog(ContentPanel* cp, shared_ptr<Film> film, FilmView
sizer->Layout ();
sizer->SetSizeHints (this);
+ Bind(wxEVT_CHAR_HOOK, boost::bind(&TimelineDialog::keypress, this, _1));
+
_toolbar->ToggleTool ((int) Timeline::SNAP, _timeline.snap ());
film_change (ChangeType::DONE, Film::Property::SEQUENCE);
@@ -141,3 +143,10 @@ TimelineDialog::tool_clicked (wxCommandEvent& ev)
}
}
}
+
+
+void
+TimelineDialog::keypress(wxKeyEvent const& event)
+{
+ _timeline.keypress(event);
+}