|
|
@ -1,5 +1,4 @@ |
|
|
|
import '../console/console-frame.scss'; |
|
|
|
import '../console/console-frame.scss'; |
|
|
|
import * as inputActions from '../actions/input'; |
|
|
|
|
|
|
|
import * as consoleFrames from '../console/frames'; |
|
|
|
import * as consoleFrames from '../console/frames'; |
|
|
|
import * as scrolls from '../content/scrolls'; |
|
|
|
import * as scrolls from '../content/scrolls'; |
|
|
|
import * as histories from '../content/histories'; |
|
|
|
import * as histories from '../content/histories'; |
|
|
@ -13,11 +12,11 @@ window.addEventListener("keypress", (e) => { |
|
|
|
if (e.target instanceof HTMLInputElement) { |
|
|
|
if (e.target instanceof HTMLInputElement) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
browser.runtime.sendMessage(inputActions.keyPress(e.which, e.ctrlKey)) |
|
|
|
browser.runtime.sendMessage({ |
|
|
|
.catch((err) => { |
|
|
|
type: messages.KEYDOWN, |
|
|
|
console.error("Vim Vixen:", err); |
|
|
|
code: e.which, |
|
|
|
return consoleFrames.showError(err.message); |
|
|
|
ctrl: e.ctrl |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const execOperation = (operation) => { |
|
|
|
const execOperation = (operation) => { |
|
|
|