diff --git a/AvaloniaWhatKey.sln b/AvaloniaWhatKey.sln
new file mode 100644
index 0000000..e1dc613
--- /dev/null
+++ b/AvaloniaWhatKey.sln
@@ -0,0 +1,16 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvaloniaWhatKey", "AvaloniaWhatKey\AvaloniaWhatKey.csproj", "{C5D03CA1-1F8C-42DB-BE50-9573D3FF8EE1}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {C5D03CA1-1F8C-42DB-BE50-9573D3FF8EE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C5D03CA1-1F8C-42DB-BE50-9573D3FF8EE1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C5D03CA1-1F8C-42DB-BE50-9573D3FF8EE1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C5D03CA1-1F8C-42DB-BE50-9573D3FF8EE1}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/AvaloniaWhatKey/App.axaml b/AvaloniaWhatKey/App.axaml
new file mode 100644
index 0000000..c643fad
--- /dev/null
+++ b/AvaloniaWhatKey/App.axaml
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/AvaloniaWhatKey/App.axaml.cs b/AvaloniaWhatKey/App.axaml.cs
new file mode 100644
index 0000000..2d320a6
--- /dev/null
+++ b/AvaloniaWhatKey/App.axaml.cs
@@ -0,0 +1,24 @@
+using Avalonia;
+using Avalonia.Controls.ApplicationLifetimes;
+using Avalonia.Markup.Xaml;
+
+namespace AvaloniaWhatKey
+{
+ public partial class App : Application
+ {
+ public override void Initialize()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+
+ public override void OnFrameworkInitializationCompleted()
+ {
+ if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
+ {
+ desktop.MainWindow = new MainWindow();
+ }
+
+ base.OnFrameworkInitializationCompleted();
+ }
+ }
+}
\ No newline at end of file
diff --git a/AvaloniaWhatKey/AvaloniaWhatKey.csproj b/AvaloniaWhatKey/AvaloniaWhatKey.csproj
new file mode 100644
index 0000000..ece3506
--- /dev/null
+++ b/AvaloniaWhatKey/AvaloniaWhatKey.csproj
@@ -0,0 +1,27 @@
+
+
+ WinExe
+ net6.0
+ enable
+
+ copyused
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AvaloniaWhatKey/MainWindow.axaml b/AvaloniaWhatKey/MainWindow.axaml
new file mode 100644
index 0000000..4c37565
--- /dev/null
+++ b/AvaloniaWhatKey/MainWindow.axaml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
diff --git a/AvaloniaWhatKey/MainWindow.axaml.cs b/AvaloniaWhatKey/MainWindow.axaml.cs
new file mode 100644
index 0000000..cf91020
--- /dev/null
+++ b/AvaloniaWhatKey/MainWindow.axaml.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Diagnostics;
+using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Input;
+using Avalonia.Interactivity;
+
+namespace AvaloniaWhatKey
+{
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+
+ AddHandler(KeyDownEvent, OnKeyDown, RoutingStrategies.Tunnel | RoutingStrategies.Bubble);
+ }
+
+ private void OnKeyDown(object? sender, KeyEventArgs e)
+ {
+ var gesture =
+ (e.KeyModifiers != KeyModifiers.None
+ ? e.KeyModifiers.ToString().Replace(", ", "+") + "+"
+ : "")
+ + "Key."
+ + e.Key;
+ GestureText.Text = gesture;
+ }
+
+ private async void CopyButton_OnClick(object? sender, RoutedEventArgs e)
+ {
+ if (Application.Current?.Clipboard is { } clipboard)
+ {
+ try
+ {
+ await clipboard.SetTextAsync(GestureText.Text);
+ }
+ catch (Exception)
+ {
+ // ignored
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/AvaloniaWhatKey/Program.cs b/AvaloniaWhatKey/Program.cs
new file mode 100644
index 0000000..3713b48
--- /dev/null
+++ b/AvaloniaWhatKey/Program.cs
@@ -0,0 +1,21 @@
+using Avalonia;
+using System;
+
+namespace AvaloniaWhatKey
+{
+ class Program
+ {
+ // Initialization code. Don't use any Avalonia, third-party APIs or any
+ // SynchronizationContext-reliant code before AppMain is called: things aren't initialized
+ // yet and stuff might break.
+ [STAThread]
+ public static void Main(string[] args) => BuildAvaloniaApp()
+ .StartWithClassicDesktopLifetime(args);
+
+ // Avalonia configuration, don't remove; also used by visual designer.
+ public static AppBuilder BuildAvaloniaApp()
+ => AppBuilder.Configure()
+ .UsePlatformDetect()
+ .LogToTrace();
+ }
+}
\ No newline at end of file