AvalonStudio.Controls.KeyExtensions.IsSearchKey C# (CSharp) Method

IsSearchKey() public static method

public static IsSearchKey ( this key ) : bool
key this
return bool
        public static bool IsSearchKey(this Key key)
        {
            bool result = false;

            if (!key.IsNavigationKey() && !key.IsTriggerKey())
            {
                switch (key)
                {
                    case Key.OemPeriod:
                    case Key.Space:
                    case Key.OemOpenBrackets:
                    case Key.OemCloseBrackets:
                        result = true;
                        break;
                }
            }

            return result;
        }
    }