Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions images/chromium-headful/client/src/components/video.vue
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,17 @@
}

this.$client.sendData('keydown', { key: this.keyMap(key) })

// Allow Ctrl/Cmd+V through so the browser fires a paste event,
// which triggers onPaste -> syncClipboard (required for Safari
// clipboard access since it only permits reads in user-initiated events)
const isV = key === 0x0076
const isCtrl = this.keyboard.modifiers?.ctrl
const isMeta = this.keyboard.modifiers?.meta
if (isV && (isCtrl || isMeta)) {
return true
}

return false
}
this.keyboard.onkeyup = (key: number) => {
Expand Down
Loading