fix textbox keyboard global handling

add CameraConfig to prod json
add launch and tasks jsons to vscode folder
This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-10-01 20:04:45 +03:00
parent 99b9058187
commit 5e226d422d
7 changed files with 121 additions and 10 deletions
+4 -2
View File
@@ -1,7 +1,7 @@
using System.IO;
using System.Net.Http;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Threading;
using Azaion.Annotator;
using Azaion.Common;
@@ -20,7 +20,6 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using Serilog;
using KeyEventArgs = System.Windows.Input.KeyEventArgs;
@@ -200,6 +199,9 @@ public partial class App
private void GlobalKeyHandler(object sender, RoutedEventArgs e)
{
var args = (KeyEventArgs)e;
if (args.OriginalSource is TextBox)
return;
var keyEvent = new KeyEvent(sender, args, _formState.ActiveWindow);
ThrottleExt.Throttle(() => _mediator.Publish(keyEvent, _mainCTokenSource.Token), KeyPressTaskId, TimeSpan.FromMilliseconds(50));
//e.Handled = true;
+5
View File
@@ -29,5 +29,10 @@
"RightPanelWidth": 120.0,
"GenerateAnnotatedImage": true,
"SilentDetection": false
},
"CameraConfig": {
"Altitude": 400,
"CameraSensorWidth": 23.5,
"CameraFocalLength": 24
}
}