标签: c# wpf events reactiveui
如何检测双键板(如双键-Enter)和ReactiveUI
答案 0 :(得分:2)
这个怎么样:
doubleEnter = someWindow.Events().KeyUp .Where(x => x.EventArgs.Key == Key.Enter) .Buffer(TimeSpan.FromMilliseconds(650), RxApp.MainThreadScheduler) .Where(x => x.Length > 1);