diff --git a/buildroot-v86/board/v86/rootfs_overlay/root/opt/codemirror/codemirror b/buildroot-v86/board/v86/rootfs_overlay/root/opt/codemirror/codemirror index cac9e04..9223300 100755 --- a/buildroot-v86/board/v86/rootfs_overlay/root/opt/codemirror/codemirror +++ b/buildroot-v86/board/v86/rootfs_overlay/root/opt/codemirror/codemirror @@ -5,3 +5,4 @@ me="$(dirname $(readlink -f $0))" file="$(readlink -f "$1")" $me/codemirror.js "$file" +echo "press ctrl-X to exit editor" diff --git a/buildroot-v86/board/v86/rootfs_overlay/root/opt/codemirror/codemirror.js b/buildroot-v86/board/v86/rootfs_overlay/root/opt/codemirror/codemirror.js index 215eaa2..9c1e5aa 100755 --- a/buildroot-v86/board/v86/rootfs_overlay/root/opt/codemirror/codemirror.js +++ b/buildroot-v86/board/v86/rootfs_overlay/root/opt/codemirror/codemirror.js @@ -87,6 +87,11 @@ AFRAME.registerComponent('codemirror', { } }) this.editor.setOption("theme", "shadowfox") + this.editor.setOption("extraKeys", { + "Ctrl-X": (cm) => { + this.el.emit('close',true) // window.js will react accordingly + } + }) this.editor.updateFile = AFRAME.utils.throttle( (file,str) => { this.updateFile(file,str) }, 1500) diff --git a/dist/v86-linux.iso b/dist/v86-linux.iso index 8d4e867..8c8c30d 100644 Binary files a/dist/v86-linux.iso and b/dist/v86-linux.iso differ