private void guessbox_keydown(object sender, MonoGame.Extended.Input.InputListeners.KeyboardEventArgs e) { if (e.Key == Keys.Enter) { handleword(); } }
private void KeyboardListener_KeyTyped(object sender, MonoGame.Extended.Input.InputListeners.KeyboardEventArgs e) { if (!Game1.SplashDone) { if (e.Key == Microsoft.Xna.Framework.Input.Keys.Escape || e.Key == Microsoft.Xna.Framework.Input.Keys.Enter || e.Key == Microsoft.Xna.Framework.Input.Keys.Space) { this.SkipOne(); } } }
private void _search_KeyEvent(object sender, MonoGame.Extended.Input.InputListeners.KeyboardEventArgs e) { if (e.Key == Microsoft.Xna.Framework.Input.Keys.Enter) { _filesView.Filter = _search.Text; if (_filesView.VisibleItems.Length == 0) { _statusHead.Text = "No results found"; _statusDescription.Text = $"Your search \"{_search.Text}\" did not return any results."; _statusDescription.Visible = true; _statusHead.Visible = true; } else { _statusHead.Visible = false; _statusDescription.Visible = false; } } }