dev

Note: After publishing, you may have to bypass your browser's cache to see the changes.

// HistoryKey
// By @JustLeafy
$("body").off("keydown.gks");
$("body").on("keydown.gks", function (e) {
	if (e.key !== "h") return;
	switch (document.activeElement.tagName) {
		case "INPUT":
		case "TEXTAREA":
		case "DIV": // UCP Editor - might be better to check for body class .action-edit
		return;
	}
	location.href = mw.util.getUrl(mw.config.get("wgPageName"), {action: "history"});
});