Skip to main content

Appendix D – Chromium Embedded Framework (CEF), WebView and Electron

You can use CEF or Electron to make a standalone client, so SparkView client can access local resource directly (clipboard), and override some shortcuts keys reserved by the browser (Ctrl+T/W etc).

  1. Let Spark View know it can access the clipboard directly by setting directClipAccess: true in appcfg.js.
  2. For CEF, you need to enable cef_state_t javascript_access_clipboard.
  3. For WebView, please check: https://stackoverflow.com/questions/4200259/tapping-formfield-in-webview-does-not-show-soft-keyboard
  4. For Electron, you can also use mainWindow.webContents.executeJavaScript('hi5.appcfg.directClipAccess=true') to inject the code.