mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
24 lines
557 B
C#
24 lines
557 B
C#
using System;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Input;
|
|
using Avalonia.Styling;
|
|
|
|
namespace Artemis.UI.Shared
|
|
{
|
|
internal class NoInputTextBox : TextBox, IStyleable
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void OnKeyDown(KeyEventArgs e)
|
|
{
|
|
// Don't call the base method on purpose
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void OnKeyUp(KeyEventArgs e)
|
|
{
|
|
// Don't call the base method on purpose
|
|
}
|
|
|
|
Type IStyleable.StyleKey => typeof(TextBox);
|
|
}
|
|
} |