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

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.