Browse Source
And only focus selectable items when focus comes from the pointer, or directional keys.pull/72/merge
14 changed files with 124 additions and 30 deletions
@ -0,0 +1,35 @@ |
|||
// -----------------------------------------------------------------------
|
|||
// <copyright file="NavigationMethod.cs" company="Steven Kirk">
|
|||
// Copyright 2015 MIT Licence. See licence.md for more information.
|
|||
// </copyright>
|
|||
// -----------------------------------------------------------------------
|
|||
|
|||
namespace Perspex.Input |
|||
{ |
|||
/// <summary>
|
|||
/// Defines the method by which a focus change occurred.
|
|||
/// </summary>
|
|||
public enum NavigationMethod |
|||
{ |
|||
/// <summary>
|
|||
/// The focus was changed by an unspecified method, e.g. calling
|
|||
/// <see cref="InputElement.Focus"/>.
|
|||
/// </summary>
|
|||
Unspecified, |
|||
|
|||
/// <summary>
|
|||
/// The focus was changed by the user tabbing between control.
|
|||
/// </summary>
|
|||
Tab, |
|||
|
|||
/// <summary>
|
|||
/// The focus was changed by the user pressing a directional navigation key.
|
|||
/// </summary>
|
|||
Directional, |
|||
|
|||
/// <summary>
|
|||
/// The focus was changed by a pointer click.
|
|||
/// </summary>
|
|||
Pointer, |
|||
} |
|||
} |
|||
Loading…
Reference in new issue