Skip to content

Commit

Permalink
added keywords to tooltips using uiCmd function
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerwuster authored and bhousel committed Dec 22, 2023
1 parent 0733fc1 commit 2cd94e6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/operations/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function operationCopy(context, selectedIDs) {


operation.id = 'copy';
operation.keys = [ uiCmd('⌘ Cmd + C') ];
operation.keys = [ uiCmd('⌘C') ];
operation.title = l10n.t('operations.copy.title');
operation.behavior = new KeyOperationBehavior(context, operation);

Expand Down
2 changes: 1 addition & 1 deletion modules/operations/cycle_highway_tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function operationCycleHighwayTag(context, selectedIDs) {


operation.id = 'cycle_highway_tag';
operation.keys = ['⇧ Shift + ' + l10n.t('operations.cycle_highway_tag.key')];
operation.keys = ['⇧' + l10n.t('operations.cycle_highway_tag.key')];
operation.title = l10n.t('operations.cycle_highway_tag.title');
operation.behavior = new KeyOperationBehavior(context, operation);

Expand Down
2 changes: 1 addition & 1 deletion modules/operations/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function operationDelete(context, selectedIDs) {


operation.id = 'delete';
operation.keys = [ uiCmd('⌘ Cmd + ⌫ Delete'), uiCmd('⌘ Cmd + ⌦ Delete'), uiCmd('⌦ Delete') ];
operation.keys = [ uiCmd('⌘'), uiCmd('⌘'), uiCmd('⌦') ];
operation.title = l10n.t('operations.delete.title');
operation.behavior = new KeyOperationBehavior(context, operation);

Expand Down
2 changes: 1 addition & 1 deletion modules/operations/downgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function operationDowngrade(context, selectedIDs) {


operation.id = 'downgrade';
operation.keys = [ uiCmd('⌫ Delete') ];
operation.keys = [ uiCmd('⌫') ];
operation.title = l10n.t('operations.downgrade.title');
operation.behavior = new KeyOperationBehavior(context, operation);

Expand Down
2 changes: 1 addition & 1 deletion modules/operations/paste.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function operationPaste(context) {


operation.id = 'paste';
operation.keys = [ uiCmd('⌘ Cmd + V') ];
operation.keys = [ uiCmd('⌘V') ];
operation.title = l10n.t('operations.paste.title');

return operation;
Expand Down
2 changes: 1 addition & 1 deletion modules/ui/sections/data_layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function uiSectionDataLayers(context) {
d3_select(nodes[i])
.call(uiTooltip(context)
.title(l10n.tHtml(`map_data.layers.${d.id}.tooltip`))
.keys([uiCmd('⌥ Option' + l10n.t('area_fill.wireframe.key'))])
.keys([uiCmd('⌥' + l10n.t('area_fill.wireframe.key'))])
.placement('bottom')
);
} else {
Expand Down

0 comments on commit 2cd94e6

Please sign in to comment.