Merge pull request #20098 from atom/window-spec-suite

Fixed unable to copy selected text from spec-suite window
This commit is contained in:
Musa Ibrahim 2019-11-12 08:07:19 +01:00 committed by GitHub
commit 83ff98c1ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ module.exports = ({blobStore}) ->
# Copy: cmd-c / ctrl-c
if (event.metaKey or event.ctrlKey) and event.keyCode is 67
ipcHelpers.call('window-method', 'copy')
atom.clipboard.write(window.getSelection().toString())
window.addEventListener('keydown', handleKeydown, true)
# Add 'exports' to module search path.