dragging: add possibility of handling key events mid-drag

Currently only called from a canvas automation track event handler.
This commit is contained in:
Paul Davis 2023-07-10 12:21:27 -06:00
parent 6453049c0a
commit a14c534d16
3 changed files with 30 additions and 1 deletions

View file

@ -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;
}