KLITE Hotkeys Mod
Overview
The KLITE Hotkeys Mod is a simple but powerful mod for KoboldAI Lite that adds keyboard shortcuts for common text generation functions. This tool enhances productivity by allowing users to trigger key actions without reaching for the mouse.
What It Does
This mod adds essential keyboard shortcuts to KoboldAI Lite, making text generation workflow faster and more efficient. The hotkeys integrate directly with KoboldAI Lite's existing functions and respect the current state of the interface.
Keyboard Shortcuts
The mod provides the following hotkey combinations:
- Ctrl+Shift+Enter: Generate/Submit text
- Ctrl+Shift+R: Retry last generation
- Ctrl+Shift+Z: Undo/Back to previous state
- Ctrl+Shift+Y: Redo forward
- Ctrl+Shift+A: Abort current generation
Key Features
- Smart Context Awareness: Hotkeys are disabled when typing in input fields to avoid interference
- Visual Feedback: Shows notification when the mod is loaded and active
- Integration Safety: Only triggers actions when corresponding buttons are available and enabled
- Console Logging: Provides clear feedback about available shortcuts in the browser console
Installation
- Open KoboldAI Lite in your browser
- Navigate to the Advanced Settings tab
- Click "Apply User Script"
- Paste the KLITEHotkeysMod.js code
- Click OK to activate
A notification will appear briefly confirming the hotkeys are active, and the available shortcuts will be logged to the browser console.
Usage Notes
- Hotkeys work globally within the KoboldAI Lite interface
- They automatically disable when typing in text areas or input fields
- All shortcuts use Ctrl+Shift combinations to avoid conflicts with browser shortcuts
- The mod respects the current state of KoboldAI Lite (e.g., won't generate if already generating)
Source Code
Available at: https://github.com/PeterPeet/KLITE-Tools License: GPL-3.0