private void Grid_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { SearchSongRequested(); } }
private void OnKeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { //CCLog.Log("Key Up" + e.Key.ToString()); var textBox = sender as Windows.UI.Xaml.Controls.TextBox; switch (e.Key) { // We do not want to handle the escape key here because we already detached // on the OnKeyDown //case VirtualKey.Escape: // e.Handled = true; // break; case VirtualKey.Back: OnDeleteBackward(); break; case VirtualKey.Enter: OnInsertText(new CCIMEKeybardEventArgs("\n", 1)); break; default: var text = textBox.Text; if (!string.IsNullOrEmpty(text)) { var charToSend = text.Substring(text.Length - 1); OnInsertText(new CCIMEKeybardEventArgs(charToSend, 1)); } break; } textBox.Text = string.Empty; }
private void MessageBox_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { SpeakAndClearAsync(); } }
private void TextBox_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { var textBox = sender as TextBox; NewToDoItemNameTextBox = textBox; if (!string.IsNullOrEmpty(textBox.Text) && textBox.Text.Length > 1) { if (AddNewItemConfirmButton != null) { AddNewItemConfirmButton.IsEnabled = true; } if (e.Key == Windows.System.VirtualKey.Enter) { // Handle 'Enter' key for keyboard users if (e.Key == Windows.System.VirtualKey.Enter) { e.Handled = true; CreateNewToDoItem(textBox); } } } else { if (AddNewItemConfirmButton != null) { AddNewItemConfirmButton.IsEnabled = false; } } }
/// <summary> /// Handles the KeyDown event of the textboxSearchReceipe control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Windows.UI.Xaml.Input.KeyRoutedEventArgs"/> instance containing the event data.</param> private void textboxSearchReceipe_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { searchConfirmation(); } }
private void TrimEndTime_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { CutRange.Focus(FocusState.Programmatic); } }
private void GridView_PreviewKeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == VirtualKey.Space) { e.Handled = true; } }
private void enterKeyed(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter && vm.IsBusy == false) { DoExpLogin(); } }
private void PageLayout_KeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Escape && ViewModel.CurrentPageName.Contains("DetailPage")) { FullScreenService.ChangeFullScreenMode(); } }
private void PortTextBox_KeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter && ConnectButton.IsEnabled) { Connect(); } }
private void IPAddressTextBox_KeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter && PortTextBox.IsEnabled) { PortTextBox.Focus(FocusState.Programmatic); } }
private void RegisterKeyBindingDialog_PreviewKeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { switch (e.Key) { case VirtualKey.Control: KeyBinding.Ctrl = true; break; case VirtualKey.Shift: KeyBinding.Shift = true; break; case VirtualKey.Menu: KeyBinding.Alt = true; break; case VirtualKey.LeftWindows: case VirtualKey.RightWindows: KeyBinding.Meta = true; break; default: KeyBinding.Key = (int)e.Key; break; } ResetButton.Visibility = Visibility.Visible; e.Handled = true; }
private void NewTaskTextBox_KeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == VirtualKey.Enter) { AddTask(); } }
private void Page_KeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key.ToString().Equals("Space")) { CaptureCameraSnapshot(); } }
private void TxtTask_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { BtAdd_Click(null, null); } }
private void SearchTextBox_KeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { CallList.Focus(Windows.UI.Xaml.FocusState.Programmatic); } }
private void EnterPressed(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { SaveData(); } }
private void OnKeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { //CCLog.Log("Key Up" + e.Key.ToString()); var textBox = sender as Windows.UI.Xaml.Controls.TextBox; switch (e.Key) { // We can not seem to capture the escape key so we rely on Keyboard Hide //case VirtualKey.Escape: // e.Handled = true; // IsVisible = false; // OnKeyboardWillHide(); // OnKeyboardDidHide(); // break; case VirtualKey.Back: OnDeleteBackward(); break; case VirtualKey.Enter: OnInsertText(new CCIMEKeybardEventArgs("\n", 1)); break; default: var text = textBox.Text; if (!string.IsNullOrEmpty(text)) { var charToSend = text.Substring(text.Length - 1); OnInsertText(new CCIMEKeybardEventArgs(charToSend, 1)); } break; } textBox.Text = string.Empty; }
private void NewPasswordKeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (Helper.IsEnterKey(e)) { pwbConfirmPassword.Focus(FocusState.Keyboard); } }
private void SearchContent_KeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { ViewModel.Search(SearchContent.Text); } }
private void OnNewContactKeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == VirtualKey.Enter && CanAddContact()) { AddNewContact(); } }
private void TextInput_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { ButtonSave.Focus(FocusState.Programmatic); } }
private void StorageMaxSize_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { HandleStorageMaxSizeChange(); } }
private void MyAnimalList_KeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Delete) { DeleteSelectedItem(); } }
private void fastFowardButton_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (walkman != null && cassetteTape != null) { walkman.FastForward(1); } }
private void AddBalance_txtbox_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key.ToString() == "Enter") { enterBalance_btn_Click(enterBalance_btn, new RoutedEventArgs()); } }
private void SearchText_KeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { SearchButton_Click(null, null); } }
private void Search_txtbox_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key.ToString() == "Enter") { search_btn_Click(search_btn, new RoutedEventArgs()); } }
/// <summary> /// Handles presses to the Enter key by saving location edits. /// </summary> private void TextBox_KeyUp(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { //if (e.Key == Windows.System.VirtualKey.Enter) //{ // await this.SaveAsync((sender as FrameworkElement).DataContext as LocationData); //} }
private void NameDialog_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e) { if (e.Key.Equals(VirtualKey.Escape)) { Hide(); } }