hv-unified/src/keybindings.js
GaboGG f2fc00965e v0.16.0 - Complement community scripts (AGY refactor)
REMOVED (owned by MB/HVUT):
- RE timer (HVUtils has one)
- Battle keybinds Q/H/C (Monsterbation owns battle keys; kept , for settings)
- Hover-attack battle UI hooks (Monsterbation)
- Battle logger (Monsterbation combat log)
- Spirit/potion/scroll auto-use in battle (Monsterbation)
- Armory bulk sell/salvage/shrine UI + Keep Top 10% button (HVUtils bulk tools)

RESOLVED:
- Q keybind collision: yielded to Monsterbation
- DOM double-injection: removed duplicate overlays
- Storage: hvunified_ namespace isolated from HVUT GM_* storage

KEPT (gaps community doesn't cover):
- Gear analysis/scoring (equipped vs store, 19-category advisory)
- Strategy guidance as advisory layer (HV.advice/HV.action)
- Guidance/abilities/difficulty advisor
- window.HV public API bridge
2026-08-04 14:03:34 -04:00

25 lines
1.1 KiB
JavaScript

// ═══════════════════════════════════════════════════════════════════════
// KEYBINDINGS — keyboard shortcuts for battle
// ═══════════════════════════════════════════════════════════════════════
let keybindingsSetup = false;
function setupKeybindings() {
if (keybindingsSetup) return;
keybindingsSetup = true;
document.addEventListener('keydown', function(e) {
// Settings — comma key (non-conflicting with Monsterbation)
if (e.keyCode === KEYS.COMMA) {
if (isBattlePage()) {
e.preventDefault();
STATE.settingsVisible = !STATE.settingsVisible;
toggleSettings();
return;
}
}
});
console.log('%c⌨ [HV] Key: ,=settings (Battle input managed by Monsterbation)', 'color:#0f0;font-size:11px');
}