mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 05:39:55 +00:00
There are quite a few tools that might want to change certain values based on consistent keyboard shortcuts. This commit allows tools to hook up a "primary" and "secondary" slider with the base `Tool` class, which can then handle updating those sliders with the common shortcuts. Note that any derived classes that want to override the `on_keydown` function will manually need to call `Tool::on_keydown()`.
1.2 KiB
1.2 KiB