}
int EditOverwrite::keypress_event()
{
- if( get_keypress() == 'b' ) {
+ if( alt_down() ) return 0;
+ if( get_keypress() == 'b' ||
+ (panel->is_vwindow() && get_keypress() == 'B') ) {
handle_event();
return 1;
}
int EditToClip::keypress_event()
{
- if( get_keypress() == 'i' && !alt_down() ) {
+ if( alt_down() ) return 0;
+ if( get_keypress() == 'i' ||
+ (panel->is_vwindow() && get_keypress() == 'I') ) {
handle_event();
return 1;
}
}
int EditSplice::keypress_event()
{
- if( get_keypress() == 'v' ) {
+ if( alt_down() ) return 0;
+ if( get_keypress() == 'v' ||
+ (panel->is_vwindow() && get_keypress() == 'V') ) {
handle_event();
return 1;
}
}
int EditCut::keypress_event()
{
+ if( ctrl_down() || shift_down() || alt_down() )
+ return 0;
if( get_keypress() == 'x' )
return handle_event();
return 0;
{
this->mwindow = mwindow;
this->panel = panel;
- set_tooltip(_("Click to play"));
+ set_tooltip(_("Click to play (p)"));
}
int EditClick2Play::handle_event()
{
mwindow->edl->session->vwindow_click2play = value;
return 1;
}
+int EditClick2Play::keypress_event()
+{
+ int key = get_keypress();
+ if( key == 'p' && !ctrl_down() && !shift_down() && !alt_down() ) {
+ int value = get_value() ? 0 : 1;
+ update(value);
+ if( !panel->is_vwindow() )
+ mwindow->edl->session->cwindow_click2play = value;
+ else
+ mwindow->edl->session->vwindow_click2play = value;
+ return 1;
+ }
+ return 0;
+}
+
EditCommercial::EditCommercial(MWindow *mwindow, EditPanel *panel, int x, int y)
: BC_Button(x, y, mwindow->theme->get_image_set("commercial"))
{
this->mwindow = mwindow;
this->panel = panel;
- set_tooltip(_("Commercial ( shift X )"));
+ set_tooltip(_("Commercial ( shift A )"));
}
EditCommercial::~EditCommercial()
{
}
int EditCommercial::keypress_event()
{
- if( get_keypress() == 'X' )
+ if( ctrl_down() || !shift_down() || alt_down() )
+ return 0;
+ if( get_keypress() == 'A' )
return handle_event();
return 0;
}
int EditCopy::keypress_event()
{
- if( get_keypress() == 'c' )
+ if( alt_down() ) return 0;
+ if( get_keypress() == 'c' ||
+ (panel->is_vwindow() && get_keypress() == 'C') ) {
return handle_event();
+ }
return 0;
}
int EditCopy::handle_event()
}
int EditUndo::keypress_event()
{
+ if( ctrl_down() || shift_down() || alt_down() )
+ return 0;
if( get_keypress() == 'z' )
return handle_event();
return 0;
}
int EditRedo::keypress_event()
{
+ if( ctrl_down() || !shift_down() || alt_down() )
+ return 0;
if( get_keypress() == 'Z' )
return handle_event();
return 0;
{
this->mwindow = mwindow;
this->panel = panel;
- set_tooltip(_("Generate keyframes while tweeking"));
+ set_tooltip(_("Generate keyframes while tweeking (j)"));
}
int KeyFrameButton::handle_event()
return 1;
}
+int KeyFrameButton::keypress_event()
+{
+ int key = get_keypress();
+ if( key == 'j' && !ctrl_down() && !shift_down() && !alt_down() ) {
+ int value = get_value() ? 0 : 1;
+ update(value);
+ mwindow->set_auto_keyframes(value,
+ !panel->is_mwindow(), panel->is_mwindow());
+ return 1;
+ }
+ return 0;
+}
LockLabelsButton::LockLabelsButton(MWindow *mwindow, int x, int y)
: BC_Toggle(x, y,
"", 0, 0, 0)
{
this->mwindow = mwindow;
- set_tooltip(_("Lock labels from moving"));
+ set_tooltip(_("Lock labels from moving with edits"));
}
int LockLabelsButton::handle_event()