mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-19 02:19:31 +08:00
Fix hex keys5 (#3140)
* [v3 darwin] change hex values for arrow keys pulled from "Key Codes" app * Update changelog --------- Co-authored-by: Josh <josh@nerdy.co.nz>
This commit is contained in:
parent
371e57588f
commit
2b3c96ab3d
@ -19,23 +19,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- [darwin] add Event ApplicationShouldHandleReopen to be able to handle dock icon
|
- [darwin] add Event ApplicationShouldHandleReopen to be able to handle dock icon click by @5aaee9 in [#2991](https://github.com/wailsapp/wails/pull/2991)
|
||||||
click by @5aaee9 in [#2991](https://github.com/wailsapp/wails/pull/2991)
|
- [darwin] add getPrimaryScreen/getScreens to impl by @tmclane in [#2618](https://github.com/wailsapp/wails/pull/2618)
|
||||||
- [darwin] add getPrimaryScreen/getScreens to impl by @tmclane in
|
|
||||||
[#2618](https://github.com/wailsapp/wails/pull/2618)
|
|
||||||
- [linux] add onKeyPress logic to convert linux keypress into an accelerator @[Atterpac](https://github.com/Atterpac) in[#3022](https://github.com/wailsapp/wails/pull/3022])
|
- [linux] add onKeyPress logic to convert linux keypress into an accelerator @[Atterpac](https://github.com/Atterpac) in[#3022](https://github.com/wailsapp/wails/pull/3022])
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed Doctor apt package verify by [Atterpac](https://github.com/Atterpac) in
|
- Fixed Doctor apt package verify by [Atterpac](https://github.com/Atterpac) in [#2972](https://github.com/wailsapp/wails/pull/2972).
|
||||||
[#2972](https://github.com/wailsapp/wails/pull/2972).
|
- Fixed application frozen when quit (Darwin) by @5aaee9 in [#2982](https://github.com/wailsapp/wails/pull/2982)
|
||||||
- Fixed application frozen when quit (Darwin) by @5aaee9 in
|
- Fixed background colours of examples on Windows by [mmgvh](https://github.com/mmghv) in [#2750](https://github.com/wailsapp/wails/pull/2750).
|
||||||
[#2982](https://github.com/wailsapp/wails/pull/2982)
|
- Fixed default context menus by [mmgvh](https://github.com/mmghv) in [#2753](https://github.com/wailsapp/wails/pull/2753).
|
||||||
- Fixed background colours of examples on Windows by
|
- Fixed hex values for arrow keys on Darwin by [jaybeecave](https://github.com/jaybeecave) in [#3052](https://github.com/wailsapp/wails/pull/3052).
|
||||||
[mmgvh](https://github.com/mmghv) in
|
|
||||||
[#2750](https://github.com/wailsapp/wails/pull/2750).
|
|
||||||
- Fixed default context menus by [mmgvh](https://github.com/mmghv) in
|
|
||||||
[#2753](https://github.com/wailsapp/wails/pull/2753).
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
@ -184,16 +184,16 @@
|
|||||||
return unicode(0x001b);
|
return unicode(0x001b);
|
||||||
}
|
}
|
||||||
if( [key isEqualToString:@"left"] ) {
|
if( [key isEqualToString:@"left"] ) {
|
||||||
return unicode(0x001c);
|
return unicode(0xf702);
|
||||||
}
|
}
|
||||||
if( [key isEqualToString:@"right"] ) {
|
if( [key isEqualToString:@"right"] ) {
|
||||||
return unicode(0x001d);
|
return unicode(0xf703);
|
||||||
}
|
}
|
||||||
if( [key isEqualToString:@"up"] ) {
|
if( [key isEqualToString:@"up"] ) {
|
||||||
return unicode(0x001e);
|
return unicode(0xf700);
|
||||||
}
|
}
|
||||||
if( [key isEqualToString:@"down"] ) {
|
if( [key isEqualToString:@"down"] ) {
|
||||||
return unicode(0x001f);
|
return unicode(0xf701);
|
||||||
}
|
}
|
||||||
if( [key isEqualToString:@"space"] ) {
|
if( [key isEqualToString:@"space"] ) {
|
||||||
return unicode(0x0020);
|
return unicode(0x0020);
|
||||||
|
@ -103,16 +103,16 @@ NSString* translateKey(NSString* key) {
|
|||||||
return unicode(0x001b);
|
return unicode(0x001b);
|
||||||
}
|
}
|
||||||
if( [key isEqualToString:@"left"] ) {
|
if( [key isEqualToString:@"left"] ) {
|
||||||
return unicode(0x001c);
|
return unicode(0xf702);
|
||||||
}
|
}
|
||||||
if( [key isEqualToString:@"right"] ) {
|
if( [key isEqualToString:@"right"] ) {
|
||||||
return unicode(0x001d);
|
return unicode(0xf703);
|
||||||
}
|
}
|
||||||
if( [key isEqualToString:@"up"] ) {
|
if( [key isEqualToString:@"up"] ) {
|
||||||
return unicode(0x001e);
|
return unicode(0xf700);
|
||||||
}
|
}
|
||||||
if( [key isEqualToString:@"down"] ) {
|
if( [key isEqualToString:@"down"] ) {
|
||||||
return unicode(0x001f);
|
return unicode(0xf701);
|
||||||
}
|
}
|
||||||
if( [key isEqualToString:@"space"] ) {
|
if( [key isEqualToString:@"space"] ) {
|
||||||
return unicode(0x0020);
|
return unicode(0x0020);
|
||||||
|
Loading…
Reference in New Issue
Block a user