From a2cb531e06e15f9e15d5b44a83f82beddb4888f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 15 Oct 2026 10:07:08 -0400 Subject: [PATCH] Text input: Copy, Cut, Paste and SelectAll are public, so an app's Edit menu reaches a focused field --- src/forms/mod.rs | 6 +++--- src/forms/text/mod.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/forms/mod.rs b/src/forms/mod.rs index ecbe1df..e0da000 100644 --- a/src/forms/mod.rs +++ b/src/forms/mod.rs @@ -116,10 +116,10 @@ pub use switch::Switch; pub(crate) use syntax::{Syntax, syntax_fenced, syntax_of}; pub use tags::TagInput; pub(crate) use text::{ - Backspace, Copy, Cut, Delete, DeleteWordLeft, Down, Enter, Left, Paste, Redo, Right, Submit, - Undo, Up, bind_keys, from_utf16, to_utf16, + Backspace, Delete, DeleteWordLeft, Down, Enter, Left, Redo, Right, Submit, Undo, Up, bind_keys, + from_utf16, to_utf16, }; -pub use text::{Highlight, History, InputEvent, TextInput}; +pub use text::{Copy, Cut, Highlight, History, InputEvent, Paste, SelectAll, TextInput}; pub use transfer::TransferList; pub use unit::UnitInput; pub use upload::{Upload, UploadList, UploadState}; diff --git a/src/forms/text/mod.rs b/src/forms/text/mod.rs index e08f077..f86f58d 100644 --- a/src/forms/text/mod.rs +++ b/src/forms/text/mod.rs @@ -13,9 +13,9 @@ use gpui::{ }; pub(crate) use actions::{ - Backspace, Copy, Cut, Delete, DeleteWordLeft, Down, Enter, Left, Paste, Redo, Right, Submit, - Undo, Up, bind_keys, + Backspace, Delete, DeleteWordLeft, Down, Enter, Left, Redo, Right, Submit, Undo, Up, bind_keys, }; +pub use actions::{Copy, Cut, Paste, SelectAll}; pub use edit::History; use edit::Snapshot; pub(crate) use edit::{from_utf16, to_utf16};