Habanero.Faces.Win.CalendarEditingControl.EditingControlWantsInputKey C# (CSharp) Method

EditingControlWantsInputKey() public method

Indicates if the editing control wants the input key specified
public EditingControlWantsInputKey ( Keys key, bool dataGridViewWantsInputKey ) : bool
key Keys The key in question
dataGridViewWantsInputKey bool Whether the DataGridView /// wants the input key
return bool
        public bool EditingControlWantsInputKey(
            Keys key, bool dataGridViewWantsInputKey)
        {
            // Let the DateTimePicker handle the keys listed.
            switch (key & Keys.KeyCode)
            {
                case Keys.Left:
                case Keys.Up:
                case Keys.Down:
                case Keys.Right:
                case Keys.Home:
                case Keys.End:
                case Keys.PageDown:
                case Keys.PageUp:
                    return true;
                default:
                    return false;
            }
        }