diff --git a/src/store/printer/getters.ts b/src/store/printer/getters.ts index 5206a3db94..329bb718b0 100644 --- a/src/store/printer/getters.ts +++ b/src/store/printer/getters.ts @@ -422,11 +422,10 @@ export const getters: GetterTree = { if (supportedSensors.includes(type)) { const name = nameFromSplit ?? item - const prettyName = Vue.$filters.prettyCase(name) const sensor = get(state.printer, item, undefined) sensors.push({ name, - prettyName, + prettyName: Vue.$filters.prettyCase(name), ...sensor }) } diff --git a/src/util/event-helpers.ts b/src/util/event-helpers.ts index 5ef663bf57..62eba92e9f 100644 --- a/src/util/event-helpers.ts +++ b/src/util/event-helpers.ts @@ -29,6 +29,10 @@ export const keyboardEventToKeyboardShortcut = (event: KeyboardEvent): string => keys.push('Ctrl') } + if (event.metaKey) { + keys.push('Meta') + } + if (event.altKey) { keys.push('Alt') }