diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e31e1b..7b23c21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog -## [0.4.0] - Unreleased +## [0.4.1] - 2023-02-17 +### Fixed +- scancodes for F11 and F12 (windows & linux) +- scancode for LAlt (windows) + +## [0.4.0] - 2023-01-15 ### Added - filesystem example in basic.rs - URL support in filesystem API on native targets when enabling the http feature diff --git a/Cargo.toml b/Cargo.toml index ffca19b..1030ae4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uni-app" -version = "0.4.0" +version = "0.4.1" authors = [ "Edwin Cheng ", "jice " diff --git a/README.md b/README.md index 8f97b9c..0c21636 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This library provides a native/wasm compatibility layer for following components ```toml [dependencies] -uni-app = "0.3.*" +uni-app = "0.4.*" ``` ```rust diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 774c57f..ffc9da3 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uni-app-example" -version = "0.4.0" +version = "0.4.1" edition = "2021" license = "MIT" repository = "https://github.com/unrust/uni-app" diff --git a/src/native_keycode.rs b/src/native_keycode.rs index 6dbc521..6f12902 100644 --- a/src/native_keycode.rs +++ b/src/native_keycode.rs @@ -379,8 +379,8 @@ pub fn translate_scan_code(c: u32) -> ScanCode { 0x42 => ScanCode::F8, 0x43 => ScanCode::F9, 0x44 => ScanCode::F10, - 0x85 => ScanCode::F11, - 0x86 => ScanCode::F12, + 0x57 => ScanCode::F11, + 0x58 => ScanCode::F12, // F13 => ScanCode::F13, // F14 => ScanCode::F14, // F15 => ScanCode::F15, @@ -434,7 +434,7 @@ pub fn translate_scan_code(c: u32) -> ScanCode { // LAlt => ScanCode::Unknown, 0x1A => ScanCode::LBracket, 0x1D => ScanCode::LCtrl, - 0x38 => ScanCode::RCtrl, + 0x38 => ScanCode::LAlt, 0x2A => ScanCode::LShift, 0x5B => ScanCode::LWin, // Mail => ScanCode::Unknown, @@ -537,8 +537,8 @@ pub fn translate_scan_code(c: u32) -> ScanCode { 0x42 => ScanCode::F8, 0x43 => ScanCode::F9, 0x44 => ScanCode::F10, - 0x85 => ScanCode::F11, - 0x86 => ScanCode::F12, + 0x57 => ScanCode::F11, + 0x58 => ScanCode::F12, // F13 => ScanCode::F13, // F14 => ScanCode::F14, // F15 => ScanCode::F15,