Skip to content

Commit

Permalink
[v3 darwin] change hex values for arrow keys pulled from "Key Codes" app
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybeecave committed Nov 11, 2023
1 parent 1f16655 commit 7bce3a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions v2/internal/frontend/desktop/darwin/WailsMenu.m
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,16 @@ - (NSString*) accel :(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);
Expand Down
8 changes: 4 additions & 4 deletions v3/pkg/application/menuitem_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7bce3a4

Please sign in to comment.