Files
maybe/app/javascript/controllers/hotkey_controller.js
Zach Gollwitzer 9bda7efc3f New Settings Menu, Routes and Controllers Organization (#641)
* Add new settings routes and controllers

* Add new settings view, restructure controllers and routes

* Fix lint errors
2024-04-18 07:56:51 -04:00

18 lines
339 B
JavaScript

import { Controller } from "@hotwired/stimulus";
import { install, uninstall } from "@github/hotkey";
// Connects to data-controller="hotkey"
export default class extends Controller {
connect() {
install(this.element);
}
disconnect() {
uninstall(this.element);
}
navigateBack(event) {
window.history.back();
}
}