File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
webviews/apps/commitDetails/components Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,8 @@ export function getPlatform(): Platform {
1919export function getTempFile ( filename : string ) : string {
2020 return filename ;
2121}
22+
23+ export function getAltKeySymbol ( ) : string {
24+ if ( isMac ) return '⌥' ;
25+ return 'Alt' ;
26+ }
Original file line number Diff line number Diff line change @@ -22,3 +22,8 @@ export function getPlatform(): Platform {
2222export function getTempFile ( filename : string ) : string {
2323 return join ( tmpdir ( ) , filename ) ;
2424}
25+
26+ export function getAltKeySymbol ( ) : string {
27+ if ( isMac ) return '⌥' ;
28+ return 'Alt' ;
29+ }
Original file line number Diff line number Diff line change 11import { css , html , LitElement } from 'lit' ;
22import { customElement , property } from 'lit/decorators.js' ;
33import { when } from 'lit/directives/when.js' ;
4+ import { getAltKeySymbol } from '@env/platform' ;
45import type { State } from '../../../commitDetails/protocol' ;
56import { commitActionStyles } from './commit-action.css' ;
67
@@ -143,7 +144,8 @@ export class GlInspectNav extends LitElement {
143144 >
144145 </ a >
145146 < span slot ="content "
146- > Copy ${ this . stashNumber != null ? 'Stash Name' : 'SHA' } < br /> [⌥] Copy Message</ span
147+ > Copy ${ this . stashNumber != null ? 'Stash Name' : 'SHA' } < br /> [${ getAltKeySymbol ( ) } ]
148+ Copy Message</ span
147149 >
148150 </ gl-tooltip >
149151 ` ,
You can’t perform that action at this time.
0 commit comments