Skip to content

Commit

Permalink
Fix LyricBox
Browse files Browse the repository at this point in the history
  • Loading branch information
rokujyushi committed Nov 12, 2024
1 parent 2f9c2e1 commit a604b07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OpenUtau/Controls/LyricBox.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private void ListBoxSelect(int index) {
listBox.SelectedIndex = index;
}

private void Box_KeyDown(object? sender, KeyEventArgs e) {
private void Box_KeyDown(object? sender, KeyEventArgs e) {
switch (e.Key) {
case Key.Enter:
EndEdit(true);
Expand Down Expand Up @@ -135,8 +135,8 @@ private void OnTab(KeyModifiers keyModifiers) {
}

public void ListBox_PointerPressed(object sender, PointerPressedEventArgs args) {
if (sender is Grid grid &&
grid.DataContext is LyricBoxViewModel.SuggestionItem item) {
if (sender is DockPanel panel &&
panel.DataContext is LyricBoxViewModel.SuggestionItem item) {
box.Text = item.Alias;
}
EndEdit(true);
Expand Down

0 comments on commit a604b07

Please sign in to comment.