Talentely Keyboard Shortcuts
A user script that adds configurable keyboard shortcuts to the Talentely LMS platform, specifically for test pages.
Features
- Quick Navigation: Use keyboard shortcuts to select MCQ options and control test navigation (e.g., "Previous" or "Next").
- Visual Cues: Automatically adds
<kbd>
elements next to interactive elements, showing you the assigned shortcut key.
- Configurable: Easily modify the default shortcuts within the script's
talentely
object to suit your preferences.
- Debounced Updates: Smartly updates keybindings only when the question content changes, preventing unnecessary processing.
Installation
Install a User Script Manager:
This script requires a user script manager like Violentmonkey or Tampermonkey to run.
Install the Script:
- After installing your preferred user script manager, click on the "Install" button on this Greasy Fork镜像 page. Your manager will prompt you to confirm the installation.
Usage
Once installed and active on a Talentely test page (https://lms.talentely.com/test/*
), you will see small grey boxes (<kbd>
) next to:
- MCQ Options: Press the corresponding number key (1, 2, 3, 4, etc.) to select an option.
- Bottom Control Buttons: Use the assigned keys (e.g.,
'q'
for 'Previous', 'e'
for 'Next') to trigger actions.
Default Shortcuts:
- MCQ Options:
1
, 2
, 3
, 4
, 5
, 6
(for the first 6 options)
- Bottom Controls (Left to Right):
q
: Previous
e
: Next
- Other buttons in the bottom control strip do not have a default shortcut assigned as they are not common actions.
How to Change Shortcuts
You can customize the shortcuts by editing the script directly in your user script manager. Look for the talentely
object at the top of the script:
const talentely = {
// ...
mcq_options: {
keys: [1, 2, 3, 4, 5, 6] // Change these numbers for MCQ options
},
bottom_controls: {
keys: ['', 'q', '', '', 'e', ''] // Change these characters for bottom buttons
}
};