diff --git a/mkdocs-website/docs/en/changelog.md b/mkdocs-website/docs/en/changelog.md index 81aa1ff83..7ccf969f3 100644 --- a/mkdocs-website/docs/en/changelog.md +++ b/mkdocs-website/docs/en/changelog.md @@ -19,23 +19,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- [darwin] add Event ApplicationShouldHandleReopen to be able to handle dock icon - 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 Event ApplicationShouldHandleReopen to be able to handle dock icon 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) - [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 Doctor apt package verify by [Atterpac](https://github.com/Atterpac) in - [#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 background colours of examples on Windows by - [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). +- Fixed Doctor apt package verify by [Atterpac](https://github.com/Atterpac) in [#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 background colours of examples on Windows by [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). +- Fixed hex values for arrow keys on Darwin by [jaybeecave](https://github.com/jaybeecave) in [#3052](https://github.com/wailsapp/wails/pull/3052). ### Changed diff --git a/v2/internal/frontend/desktop/darwin/WailsMenu.m b/v2/internal/frontend/desktop/darwin/WailsMenu.m index 66e5dd399..7e36da99a 100644 --- a/v2/internal/frontend/desktop/darwin/WailsMenu.m +++ b/v2/internal/frontend/desktop/darwin/WailsMenu.m @@ -184,16 +184,16 @@ return unicode(0x001b); } if( [key isEqualToString:@"left"] ) { - return unicode(0x001c); + return unicode(0xf702); } if( [key isEqualToString:@"right"] ) { - return unicode(0x001d); + return unicode(0xf703); } if( [key isEqualToString:@"up"] ) { - return unicode(0x001e); + return unicode(0xf700); } if( [key isEqualToString:@"down"] ) { - return unicode(0x001f); + return unicode(0xf701); } if( [key isEqualToString:@"space"] ) { return unicode(0x0020); diff --git a/v3/pkg/application/menuitem_darwin.go b/v3/pkg/application/menuitem_darwin.go index 2093d15ff..714851bb5 100644 --- a/v3/pkg/application/menuitem_darwin.go +++ b/v3/pkg/application/menuitem_darwin.go @@ -103,16 +103,16 @@ NSString* translateKey(NSString* key) { return unicode(0x001b); } if( [key isEqualToString:@"left"] ) { - return unicode(0x001c); + return unicode(0xf702); } if( [key isEqualToString:@"right"] ) { - return unicode(0x001d); + return unicode(0xf703); } if( [key isEqualToString:@"up"] ) { - return unicode(0x001e); + return unicode(0xf700); } if( [key isEqualToString:@"down"] ) { - return unicode(0x001f); + return unicode(0xf701); } if( [key isEqualToString:@"space"] ) { return unicode(0x0020);