mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Add shortcut in operations files
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { t } from '../util/locale';
|
||||
import { actionFlip } from '../actions/index';
|
||||
import { uiCmd } from '../ui/index';
|
||||
|
||||
export function operationFlipHorizontal(selectedIDs, context) {
|
||||
var entityId = selectedIDs[0];
|
||||
@@ -25,7 +26,7 @@ export function operationFlipHorizontal(selectedIDs, context) {
|
||||
};
|
||||
|
||||
operation.id = 'flipHorizontal';
|
||||
operation.keys = [t('operations.flipHorizontal.key')];
|
||||
operation.keys = [uiCmd('⌥H')]; // Alt-H
|
||||
operation.title = t('operations.flipHorizontal.title');
|
||||
|
||||
return operation;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { t } from '../util/locale';
|
||||
import { actionFlip } from '../actions/index';
|
||||
import { uiCmd } from '../ui/index';
|
||||
|
||||
export function operationFlipVertical(selectedIDs, context) {
|
||||
var entityId = selectedIDs[0];
|
||||
@@ -25,7 +26,7 @@ export function operationFlipVertical(selectedIDs, context) {
|
||||
};
|
||||
|
||||
operation.id = 'flipVertical';
|
||||
operation.keys = [t('operations.flipVertical.key')];
|
||||
operation.keys = [uiCmd('⌥V')]; // Alt-V
|
||||
operation.title = t('operations.flipVertical.title');
|
||||
|
||||
return operation;
|
||||
|
||||
Reference in New Issue
Block a user