Skip to content

Commit

Permalink
Merge pull request #514 from correctexam/235-on-mobile-add-swipe-righ…
Browse files Browse the repository at this point in the history
…t-and-left-to-go-from-one-student-to-the-next-one

add keyboardshortcut
  • Loading branch information
barais authored Mar 19, 2024
2 parents 1debb25 + 43042ed commit 3f05b6b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,35 @@ export class CorrigequestionComponent implements OnInit, AfterViewInit {
command: () => this.toggleFocusView(),
preventDefault: true,
},
{
key: ['shift + right'],
label: this.translateService.instant('scanexam.togglefocusViewLabel'),
description: this.translateService.instant('scanexam.showbar'),
command: () => (this.layoutsidebarVisible = true),
preventDefault: true,
},
{
key: ['shift + left'],
label: this.translateService.instant('scanexam.togglefocusViewLabel'),
description: this.translateService.instant('scanexam.hidebar'),
command: () => (this.layoutsidebarVisible = false),
preventDefault: true,
},
{
key: ['ctrl + backspace', 'cmd + backspace'],
label: this.translateService.instant('scanexam.togglefocusViewLabel'),
description: this.translateService.instant('scanexam.gotolistquestion'),
command: () => this.gotoMarkingSummary(),
preventDefault: true,
},
{
key: ['ctrl + enter', 'cmd + enter'],
label: this.translateService.instant('scanexam.togglefocusViewLabel'),
description: this.translateService.instant('scanexam.showgalleria'),
command: () => this.showGalleria(),
preventDefault: true,
},

{
// ArrowRight
key: ['ctrl + right', 'cmd + right'],
Expand Down
4 changes: 3 additions & 1 deletion src/main/webapp/i18n/en/scanexammodule.json
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@
"randomcorrectionTooltip": "Allows the marker to propose a random order in which the exam sheets are evaluated for this question.",
"defaultpointTooltip": "Default point for this question",
"togglefocusViewLabel": "Layout",
"togglefocusView": "Hides non-essential widgets, so you can focus on correcting them"
"togglefocusView": "Hides non-essential widgets, so you can focus on correcting them",
"showbar": "Show the parameter sidebar",
"hidebar": "Hide the parameter sidebar"
}
}
4 changes: 3 additions & 1 deletion src/main/webapp/i18n/fr/scanexammodule.json
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,8 @@
"randomcorrectionTooltip": "Permet de proposer au correcteur un tirage aléatoire pour l'ordre de correction des copies pour cette question",
"defaultpointTooltip": "Point par défaut pour cette question",
"togglefocusViewLabel": "Disposition",
"togglefocusView": "Masque les widgets non essentiels, pour se focaliser sur la correction"
"togglefocusView": "Masque les widgets non essentiels, pour se focaliser sur la correction",
"showbar": "Voir le tirroir de paramètre",
"hidebar": "Masquer le tirroir de paramètre"
}
}

0 comments on commit 3f05b6b

Please sign in to comment.