aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/driver.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-31 21:48:10 -0700
committerAlex Yatskov <alex@foosoft.net>2017-03-31 21:48:10 -0700
commit405e487a7347181f6f49f01839c807c84fc93e41 (patch)
tree2b5d055398e525d608b549d67b0b918b0ccba0ab /ext/fg/js/driver.js
parent1d9e911648c35a65ea706fa362515ae55958000d (diff)
ctrl + c to copy
Diffstat (limited to 'ext/fg/js/driver.js')
-rw-r--r--ext/fg/js/driver.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js
index 5191f18d..d4cb1532 100644
--- a/ext/fg/js/driver.js
+++ b/ext/fg/js/driver.js
@@ -106,6 +106,10 @@ window.driver = new class {
const handlers = {
popupClose: () => {
this.searchClear();
+ },
+
+ selectionCopy: () => {
+ document.execCommand('copy');
}
};