static void OnHideSuggestion(object sender, EventArgs e) { HideTimer.Stop(); if (_lastClicked != null) { _lastClicked.PrimarySuggestion.Text = string.Empty; _lastClicked = null; } }
void Character_Button_Click(object sender, RoutedEventArgs e) { if (_lastClicked != null) { _lastClicked.PrimarySuggestion.Text = string.Empty; } _lastClicked = this; HideTimer.Stop(); var interval = AppSettings.Instance.Prediction.KeyTopHintInterval; if (interval != 0) { HideTimer.Interval = TimeSpan.FromMilliseconds(interval); HideTimer.Start(); } var vocal = (_state.IsChecked ? ShiftVocal ?? Vocal : Vocal) ?? Keytop; KeyboardHost.SendAlphanumericKeyPress(SendKeys, vocal); }