Introduce keyboard navigation in context menus

This commit is contained in:
Antonio Scandurra 2022-05-26 16:36:30 +02:00
parent 991eb742b0
commit 5b2d6e41f3
20 changed files with 121 additions and 34 deletions

View file

@ -8,9 +8,10 @@ path = "src/go_to_line.rs"
doctest = false
[dependencies]
text = { path = "../text" }
editor = { path = "../editor" }
gpui = { path = "../gpui" }
menu = { path = "../menu" }
settings = { path = "../settings" }
text = { path = "../text" }
workspace = { path = "../workspace" }
postage = { version = "0.4", features = ["futures-traits"] }

View file

@ -3,12 +3,10 @@ use gpui::{
actions, elements::*, geometry::vector::Vector2F, Axis, Entity, MutableAppContext,
RenderContext, View, ViewContext, ViewHandle,
};
use menu::{Cancel, Confirm};
use settings::Settings;
use text::{Bias, Point};
use workspace::{
menu::{Cancel, Confirm},
Workspace,
};
use workspace::Workspace;
actions!(go_to_line, [Toggle]);