mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
dragging: add possibility of handling key events mid-drag
Currently only called from a canvas automation track event handler.
This commit is contained in:
parent
6453049c0a
commit
a14c534d16
3 changed files with 30 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ public:
|
|||
~DragManager ();
|
||||
|
||||
bool motion_handler (GdkEvent *, bool);
|
||||
|
||||
bool mid_drag_key_event (GdkEventKey*);
|
||||
void abort ();
|
||||
void add (Drag *);
|
||||
void set (Drag *, GdkEvent *, Gdk::Cursor* c = MouseCursors::invalid_cursor());
|
||||
|
|
@ -238,6 +238,8 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
virtual bool mid_drag_key_event (GdkEventKey*) { return false; }
|
||||
|
||||
bool initially_vertical() const {
|
||||
return _initially_vertical;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue