Skip to content

Commit

Permalink
fix für Scanner esc
Browse files Browse the repository at this point in the history
  • Loading branch information
hmt committed Feb 26, 2020
1 parent 1201193 commit 962c8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Scanner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
medium_selected;
function handle_keydown(event) {
if (barcode_manuell) return
if (event.key === 'Escape') {
barcode_manuell = !barcode_manuell
}
if (barcode_manuell) return
if (registrieren) {
(event.key === 'Escape') && (registrieren = false)
return
Expand Down

0 comments on commit 962c8a9

Please sign in to comment.