Skip to content

Commit e98cb5a

Browse files
author
Avaer Kazmer
committed
Add initial queryCommandSupported implementation
1 parent 19182ec commit e98cb5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Document.js

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function initDocument (document, window) {
9595
document.dispatchEvent(new Event('paste'));
9696
}
9797
};
98+
document.queryCommandSupported = s => ['copy', 'paste'].includes(s);
9899
document[symbols.pointerLockElementSymbol] = null;
99100
document[symbols.fullscreenElementSymbol] = null;
100101

0 commit comments

Comments
 (0)