Fixed key translation bug. - icy_draw - icy_draw is the successor to mystic draw. fork / mirror
HTML git clone https://git.drkhsh.at/icy_draw.git
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit 0e4fb9ed96a7c4fa071886a0171833b1bddec60c
DIR parent 133873d135d285388f423c2c9d82c9eb768c4ca2
HTML Author: Mike Krüger <mkrueger@posteo.de>
Date: Mon, 29 Apr 2024 12:13:21 +0200
Fixed key translation bug.
Diffstat:
M crates/icy_term/Cargo.toml | 2 +-
M crates/icy_term/src/ui/terminal_wi… | 7 +------
2 files changed, 2 insertions(+), 7 deletions(-)
---
DIR diff --git a/crates/icy_term/Cargo.toml b/crates/icy_term/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "icy_term"
-version = "0.7.5"
+version = "0.7.6"
authors.workspace = true
edition.workspace = true
license.workspace = true
DIR diff --git a/crates/icy_term/src/ui/terminal_window.rs b/crates/icy_term/src/ui/terminal_window.rs
@@ -394,13 +394,8 @@ impl MainWindow {
self.handle_key_press(ui, &response, egui::Key::C, Modifiers::CTRL);
}
egui::Event::Key {
- key,
- pressed: true,
- modifiers,
- physical_key,
- ..
+ key, pressed: true, modifiers, ..
} => {
- let key = if let Some(key) = physical_key { key } else { key };
self.handle_key_press(ui, &response, key, modifiers);
}
_ => {}