diff --git a/Desktop/Views/Windows/VlcPlayWindow.xaml b/Desktop/Views/Windows/VlcPlayWindow.xaml
index a06b37952..e0ce75b90 100644
--- a/Desktop/Views/Windows/VlcPlayWindow.xaml
+++ b/Desktop/Views/Windows/VlcPlayWindow.xaml
@@ -55,7 +55,7 @@
-
+
diff --git a/Desktop/Views/Windows/VlcPlayWindow.xaml.cs b/Desktop/Views/Windows/VlcPlayWindow.xaml.cs
index 8fb8c0523..93a5d349b 100644
--- a/Desktop/Views/Windows/VlcPlayWindow.xaml.cs
+++ b/Desktop/Views/Windows/VlcPlayWindow.xaml.cs
@@ -577,7 +577,21 @@ private void MenuItem_TopMost_Click(object sender, RoutedEventArgs e)
{
this.Topmost = true;
TopMostSwitch = true;
- SetNotificatom("打开窗口置顶",$"{roomCard.Name}({roomCard.RoomId})窗口置顶已打开");
+ SetNotificatom("打开窗口置顶", $"{roomCard.Name}({roomCard.RoomId})窗口置顶已打开");
+ }
+ }
+
+ private void DanmaOnly_DanmaInput_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
+ {
+ if (e.KeyStates == Keyboard.GetKeyStates(Key.Enter))
+ {
+ string T = DanmaOnly_DanmaInput.Text;
+ if (string.IsNullOrEmpty(T) && T.Length > 20)
+ {
+ return;
+ }
+ Danmu.SendDanmu(roomCard.RoomId.ToString(), T);
+ DanmaOnly_DanmaInput.Clear();
}
}
}