edit predictions: Add binding to the prediction toggle (#24468)

This PR primary goal is to add a keybinding to the (ephemeral)
prediction toggle. In doing that, we also standardized the keybinding to
open the status bar menu with it.

Release Notes:

- N/A

---------

Co-authored-by: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com>
This commit is contained in:
Danilo Leal 2025-02-07 18:01:39 -03:00 committed by GitHub
parent 07f1b612cf
commit c4bcff1e87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 215 additions and 162 deletions

View file

@ -674,7 +674,8 @@ impl Render for ContextMenu {
let contents = if toggled {
v_flex().flex_none().child(
Icon::new(IconName::Check)
.color(Color::Accent),
.color(Color::Accent)
.size(*icon_size)
)
} else {
v_flex().flex_none().size(

View file

@ -234,6 +234,7 @@ pub enum IconName {
Link,
ListTree,
ListX,
LockOutlined,
MagnifyingGlass,
MailOpen,
Maximize,