Skip to content

Commit

Permalink
pretty name for runout sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeKeck committed Aug 12, 2024
1 parent 170e229 commit a5a55ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/printer/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,10 @@ export const getters: GetterTree<PrinterState, RootState> = {

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
})
}
Expand Down
4 changes: 4 additions & 0 deletions src/util/event-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down

0 comments on commit a5a55ff

Please sign in to comment.