Skip to content

Commit

Permalink
Fix unhandled keycode doesn't occur reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Riey committed Jan 15, 2021
1 parent 51d0aea commit 1b9bfd6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.4.1

* Fix unhandled keycode doesn't occur reset

# 0.4.0

* Create CHANGELOG
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion engine-cffi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kime-engine-cffi"
version = "0.4.0"
version = "0.4.1"
authors = ["Riey <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kime-engine"
version = "0.4.0"
version = "0.4.1"
authors = ["Riey <[email protected]>"]
edition = "2018"
license = "GPL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ pub unsafe extern "C" fn kime_engine_press_key(
hardware_code: u16,
state: u32,
) -> InputResult {
let engine = engine.as_mut().unwrap();
match KeyCode::from_hardward_code(hardware_code) {
Some(code) => {
let engine = engine.as_mut().unwrap();
let config = config.as_ref().unwrap();

engine.press_key(
Expand All @@ -266,7 +266,7 @@ pub unsafe extern "C" fn kime_engine_press_key(
config,
)
}
None => InputResult::bypass(),
None => bypass(&mut engine.state),
}
}

Expand Down
2 changes: 1 addition & 1 deletion gtk3/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kime-gtk3"
version = "0.4.0"
version = "0.4.1"
authors = ["Riey <[email protected]>"]
edition = "2018"
license = "GPL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion xim/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kime-xim"
version = "0.4.0"
version = "0.4.1"
authors = ["Riey <[email protected]>"]
edition = "2018"
license = "GPL-3.0"
Expand Down

0 comments on commit 1b9bfd6

Please sign in to comment.