From 7107cbbf4c41cec029cf86930c86436f9c506893 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 13 Jun 2012 21:04:31 -0700 Subject: [PATCH] Timeline: Add CTRL+L shortcut to force redraw. --- timeline/src/Timeline.C | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/timeline/src/Timeline.C b/timeline/src/Timeline.C index d0960ec..0f826c1 100644 --- a/timeline/src/Timeline.C +++ b/timeline/src/Timeline.C @@ -387,6 +387,10 @@ Timeline::menu_cb ( Fl_Menu_ *m ) redraw(); } + else if ( ! strcmp( picked, "Redraw" ) ) + { + redraw(); + } else WARNING( "programming error: Unknown menu item" ); } @@ -441,6 +445,7 @@ Timeline::Timeline ( int X, int Y, int W, int H, const char* L ) : BASE( X, Y, W menu->add( "Swap P2 and playhead", FL_CTRL + FL_SHIFT + ']', 0, 0 ); menu->add( "P1 to playhead", FL_CTRL + '[', 0, 0 ); menu->add( "P2 to playhead", FL_CTRL + ']', 0, 0 ); + menu->add( "Redraw", FL_CTRL + 'l', 0, 0 ); menu_set_callback( const_cast(menu->menu()), &Timeline::menu_cb, (void*)this );