mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-10 12:19:28 +00:00
terminal: Fix context menu keybindings flicker (#15771)
Fixes https://github.com/zed-industries/zed/issues/15156 [Screencast_20240804_112659.webm](https://github.com/user-attachments/assets/d6d15e65-ece2-4342-b2ca-55e3737a4736) Release Notes: - N/A
This commit is contained in:
parent
1f97741067
commit
82db5dedfb
1 changed files with 2 additions and 1 deletions
|
@ -211,7 +211,8 @@ impl TerminalView {
|
||||||
cx: &mut ViewContext<Self>,
|
cx: &mut ViewContext<Self>,
|
||||||
) {
|
) {
|
||||||
let context_menu = ContextMenu::build(cx, |menu, _| {
|
let context_menu = ContextMenu::build(cx, |menu, _| {
|
||||||
menu.action("New Terminal", Box::new(NewTerminal))
|
menu.context(self.focus_handle.clone())
|
||||||
|
.action("New Terminal", Box::new(NewTerminal))
|
||||||
.separator()
|
.separator()
|
||||||
.action("Copy", Box::new(Copy))
|
.action("Copy", Box::new(Copy))
|
||||||
.action("Paste", Box::new(Paste))
|
.action("Paste", Box::new(Paste))
|
||||||
|
|
Loading…
Reference in a new issue