Browse Source

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

tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
bcb7c63473
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      Timeline/Timeline.C

+ 8
- 0
Timeline/Timeline.C 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;


Loading…
Cancel
Save