Skip to content

Commit

Permalink
Accept NumpadEnter as Enter (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimvoly authored Apr 21, 2023
1 parent dc4ae68 commit 92aa9de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(missing_docs)]
#![warn(missing_docs)]

//! This crate provides a [Egui](https://github.com/emilk/egui) integration for the [Bevy](https://github.com/bevyengine/bevy) game engine.
//!
Expand Down
1 change: 1 addition & 0 deletions src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ fn bevy_to_egui_key(key_code: KeyCode) -> Option<egui::Key> {
KeyCode::Tab => egui::Key::Tab,
KeyCode::Back => egui::Key::Backspace,
KeyCode::Return => egui::Key::Enter,
KeyCode::NumpadEnter => egui::Key::Enter,
KeyCode::Space => egui::Key::Space,
KeyCode::Insert => egui::Key::Insert,
KeyCode::Delete => egui::Key::Delete,
Expand Down

0 comments on commit 92aa9de

Please sign in to comment.