condition hex highlight with hex mode

This commit is contained in:
Xen 2020-05-26 21:21:17 +08:00
parent c8e1007f59
commit c7b31d6ebe
2 changed files with 3 additions and 2 deletions

View File

@ -289,13 +289,12 @@ document.onkeydown = function (e) {
e = e || window.event;
switch (e.which || e.keyCode) {
case 13:
console.log("hello world 13");
console.log("Enter key pressed.");
if (document.activeElement.id === "trans-data") {
document.getElementById("trans-send-btn").click();
}
break;
default:
console.log("unknown event");
break;
}
};

View File

@ -694,6 +694,8 @@ amdRequire(["vs/editor/editor.main"], function () {
}
editor.onMouseUp(() => {
if (false === config.general.hexmode) return;
let model = editor.getModel();
let range = editor.getSelection();
console.log("In: " + range);