Ignore events with modifiers in Timeline::handle() to avoid eating keyboard event for global rec enable.
This commit is contained in:
parent
b0b5a1f510
commit
bcb7c63473
|
@ -1188,6 +1188,10 @@ Timeline::handle ( int m )
|
||||||
case FL_LEAVE:
|
case FL_LEAVE:
|
||||||
return 1;
|
return 1;
|
||||||
case FL_KEYDOWN:
|
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' )
|
if ( Fl::event_key() == 'r' )
|
||||||
{
|
{
|
||||||
range = true;
|
range = true;
|
||||||
|
@ -1200,6 +1204,10 @@ Timeline::handle ( int m )
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
case FL_KEYUP:
|
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' )
|
if ( Fl::event_key() == 'r' )
|
||||||
{
|
{
|
||||||
range = false;
|
range = false;
|
||||||
|
|
Loading…
Reference in New Issue