Readded Carriage - Moved Focus on enter/escape to Add Button - altered some background and foreground colors

This commit is contained in:
Ano-sys
2025-03-27 18:42:35 +01:00
parent b459f72617
commit 6fc827e9e3
3 changed files with 47 additions and 43 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows.Input;
using Avalonia.Controls;
using Avalonia.Interactivity;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
@@ -13,6 +14,7 @@ public class ViewModel : ObservableObject
private double _windowWidth = 200;
public static double _fontSize = 20;
private double _noteWidth;
public object? LastFocusedNote;
public ObservableCollection<Note> Notes { get; set; } = new ObservableCollection<Note>();
public ICommand AddButtonPressedCommand { get; }
@@ -42,7 +44,6 @@ public class ViewModel : ObservableObject
private void AddButtonPressedCommandEvent(object? sender)
{
// TODO: generate new Note
AddNote();
}