Ignore events with modifiers in Timeline::handle() to avoid eating keyboard event for global rec enable.

This commit is contained in:
Jonathan Moore Liles 2010-01-30 00:00:24 -06:00
parent b0b5a1f510
commit bcb7c63473
1 changed files with 8 additions and 0 deletions

View File

@ -1188,6 +1188,10 @@ Timeline::handle ( int m )
case FL_LEAVE:
return 1;
case FL_KEYDOWN:
if ( Fl::event_state() & ( FL_ALT | FL_CTRL | FL_SHIFT ) )
/* we don't want any keys with modifiers... */
return 0;
if ( Fl::event_key() == 'r' )
{
range = true;
@ -1200,6 +1204,10 @@ Timeline::handle ( int m )
}
return 0;
case FL_KEYUP:
if ( Fl::event_state() & ( FL_ALT | FL_CTRL | FL_SHIFT ) )
/* we don't want any keys with modifiers... */
return 0;
if ( Fl::event_key() == 'r' )
{
range = false;