}
int EditCut::keypress_event()
{
+ if( ctrl_down() || shift_down() || alt_down() )
+ return 0;
if( get_keypress() == 'x' )
return handle_event();
return 0;
int EditClick2Play::handle_event()
{
int value = get_value();
- if( !panel->is_vwindow() )
- mwindow->edl->session->cwindow_click2play = value;
- else
+ if( panel->is_vwindow() ) {
mwindow->edl->session->vwindow_click2play = value;
+ mwindow->update_vwindow();
+ }
+ else
+ mwindow->edl->session->cwindow_click2play = value;
return 1;
}
int EditClick2Play::keypress_event()
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
+ if( panel->is_vwindow() ) {
mwindow->edl->session->vwindow_click2play = value;
+ mwindow->update_vwindow();
+ }
+ else
+ mwindow->edl->session->cwindow_click2play = value;
return 1;
}
return 0;
{
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 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;