condition hex highlight with hex mode
This commit is contained in:
parent
c8e1007f59
commit
c7b31d6ebe
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue