diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-17 11:20:12 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-19 01:09:09 +0100 |
commit | 5b77346f53774fac4c9cebb73e820dafd63aaf0d (patch) | |
tree | 52d6d8ad7849be87651be7a5eabab298b8dc94e8 /Userland/Services/WindowServer | |
parent | 8f717927f29400a0e73309bb1b0d64f4f40787a1 (diff) | |
download | serenity-5b77346f53774fac4c9cebb73e820dafd63aaf0d.zip |
LibGUI: Allow double-clicking PathBreadcrumbbar buttons to edit path
When viewing a deeply nested path, there may be very little of the
PathBreadcrumbbar itself visible to double-click on. This solves that
by allowing double-clicks on its segment buttons to behave the same.
(With the caveat that it first selects the double-clicked segment.)
In order to make this work, `on_double_click` now takes the modifiers
instead of the MouseEvent. In this case we don't use it so that's fine,
but maybe we should make all mouse callbacks consistently take the
MouseEvent& as a parameter.
Diffstat (limited to 'Userland/Services/WindowServer')
0 files changed, 0 insertions, 0 deletions