jroimartin / gocui

Minimalist Go package aimed at creating Console User Interfaces.
BSD 3-Clause "New" or "Revised" License
9.92k stars 608 forks source link

Mouse clicks are not triggering correct key bindings for overlapping views #107

Closed telecoda closed 7 years ago

telecoda commented 7 years ago

I have noticed that mouse events are not triggering keybindings if there is a larger view in front of a smaller view. Even when the smaller view is set to be the TOP view.

This is because the views are being checked from the bottom upwards, not top down.

The PR below fixes the issue. https://github.com/jroimartin/gocui/pull/106

jroimartin commented 7 years ago

Thanks for the fix! The PR has been merged, so I'm closing this issue.