diff --git a/Source/Editor/Content/GUI/ContentView.cs b/Source/Editor/Content/GUI/ContentView.cs index 79e4cd0c0..5d6041af0 100644 --- a/Source/Editor/Content/GUI/ContentView.cs +++ b/Source/Editor/Content/GUI/ContentView.cs @@ -689,6 +689,30 @@ namespace FlaxEditor.Content.GUI return base.OnKeyDown(key); } + /// + public override bool OnCharInput(char c) + { + if (base.OnCharInput(c)) + return true; + + if (char.IsLetterOrDigit(c) && _items.Count != 0) + { + // Jump to the item starting with this character + c = char.ToLowerInvariant(c); + for (int i = 0; i < _items.Count; i++) + { + var name = _items[i].ShortName; + if (!string.IsNullOrEmpty(name) && char.ToLowerInvariant(name[0]) == c) + { + Select(_items[i]); + break; + } + } + } + + return false; + } + /// protected override void PerformLayoutBeforeChildren() {