diff options
author | 2017-12-14 15:58:46 +0100 | |
---|---|---|
committer | 2017-12-14 15:58:46 +0100 | |
commit | 413bf160f1922eb56a3ea84eb1e13b04f2628662 (patch) | |
tree | cfe77ec858dd97d5d1f85ebecf90e7a38b90c68a /src/webview | |
parent | remove unecessary console logs (diff) | |
download | ferdium-app-413bf160f1922eb56a3ea84eb1e13b04f2628662.tar.gz ferdium-app-413bf160f1922eb56a3ea84eb1e13b04f2628662.tar.zst ferdium-app-413bf160f1922eb56a3ea84eb1e13b04f2628662.zip |
Remove IME handlers
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/ime.js | 10 | ||||
-rw-r--r-- | src/webview/plugin.js | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/webview/ime.js b/src/webview/ime.js deleted file mode 100644 index 43df6267c..000000000 --- a/src/webview/ime.js +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | const { ipcRenderer } = require('electron'); | ||
2 | const { claimDocumentFocus } = require('../helpers/webview-ime-focus-helpers'); | ||
3 | |||
4 | ipcRenderer.on('claim-document-focus', claimDocumentFocus); | ||
5 | |||
6 | window.addEventListener('DOMContentLoaded', () => { | ||
7 | if (document.querySelector('[autofocus]')) { | ||
8 | ipcRenderer.sendToHost('autofocus'); | ||
9 | } | ||
10 | }); | ||
diff --git a/src/webview/plugin.js b/src/webview/plugin.js index c877132b1..e2daf09dd 100644 --- a/src/webview/plugin.js +++ b/src/webview/plugin.js | |||
@@ -5,7 +5,6 @@ import RecipeWebview from './lib/RecipeWebview'; | |||
5 | 5 | ||
6 | import Spellchecker from './spellchecker.js'; | 6 | import Spellchecker from './spellchecker.js'; |
7 | import './notifications.js'; | 7 | import './notifications.js'; |
8 | import './ime.js'; | ||
9 | 8 | ||
10 | const spellchecker = new Spellchecker(); | 9 | const spellchecker = new Spellchecker(); |
11 | 10 | ||