mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
27 lines
783 B
C#
27 lines
783 B
C#
using Windows.System;
|
|
using Windows.UI.Xaml.Input;
|
|
|
|
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
|
|
|
namespace ModernKeePass.Views.SettingsPageFrames
|
|
{
|
|
/// <summary>
|
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
|
/// </summary>
|
|
public sealed partial class SettingsHistoryPage
|
|
{
|
|
public SettingsHistoryPage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void UIElement_OnKeyDown(object sender, KeyRoutedEventArgs e)
|
|
{
|
|
if ((e.Key < VirtualKey.NumberPad0 || e.Key > VirtualKey.NumberPad9) & (e.Key < VirtualKey.Number0 || e.Key > VirtualKey.Number9))
|
|
{
|
|
e.Handled = true;
|
|
}
|
|
}
|
|
}
|
|
}
|