Skip to content

Commit

Permalink
fix F11, F12, LAlt scan codes
Browse files Browse the repository at this point in the history
  • Loading branch information
jice-nospam committed Feb 17, 2023
1 parent 167abd3 commit 68b8908
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uni-app"
version = "0.4.0"
version = "0.4.1"
authors = [
"Edwin Cheng <[email protected]>",
"jice <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 5 additions & 5 deletions src/native_keycode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 68b8908

Please sign in to comment.