mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
ArdourButton should call the focus handler of CairoWidget from its button press event
This commit is contained in:
parent
9be64f2648
commit
9204b2837e
1 changed files with 2 additions and 0 deletions
|
|
@ -753,6 +753,8 @@ ArdourButton::set_led_left (bool yn)
|
|||
bool
|
||||
ArdourButton::on_button_press_event (GdkEventButton *ev)
|
||||
{
|
||||
focus_handler ();
|
||||
|
||||
if ((_elements & Indicator) && _led_rect && _distinct_led_click) {
|
||||
if (ev->x >= _led_rect->x && ev->x < _led_rect->x + _led_rect->width &&
|
||||
ev->y >= _led_rect->y && ev->y < _led_rect->y + _led_rect->height) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue