From 650d15a665c189793e1e837632c831bd4f6faf3a Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 11 May 2022 19:03:36 +0200 Subject: [PATCH] Add Ctrl+C shortcut for content search result copy --- .../Editor/Windows/Search/ContentSearchWindow.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Source/Editor/Windows/Search/ContentSearchWindow.cs b/Source/Editor/Windows/Search/ContentSearchWindow.cs index 7c433f6ca..695fc335a 100644 --- a/Source/Editor/Windows/Search/ContentSearchWindow.cs +++ b/Source/Editor/Windows/Search/ContentSearchWindow.cs @@ -135,10 +135,18 @@ namespace FlaxEngine.Windows.Search /// public override bool OnKeyDown(KeyboardKeys key) { - if (IsFocused && key == KeyboardKeys.Return && Navigate != null) + if (IsFocused) { - Navigate.Invoke(this); - return true; + if (key == KeyboardKeys.Return && Navigate != null) + { + Navigate.Invoke(this); + return true; + } + if (key == KeyboardKeys.C && Root.GetKey(KeyboardKeys.Control)) + { + Clipboard.Text = Text; + return true; + } } return base.OnKeyDown(key); }