aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/GlobalKeyHandler.ts
diff options
context:
space:
mode:
authormonikahedman <monika_hedman@brown.edu>2019-08-14 18:27:45 -0400
committermonikahedman <monika_hedman@brown.edu>2019-08-14 18:27:45 -0400
commitdce7e2d39ffb9dfe2b3847af50a0e50be7eb87c5 (patch)
tree06808dd4908107e70f9995d2d8ccd96bf84cc656 /src/client/views/GlobalKeyHandler.ts
parent81100809b0f824cfc1481b19dbe38c31814539e1 (diff)
yeet we love text
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r--src/client/views/GlobalKeyHandler.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts
index e773014e3..f55953bd4 100644
--- a/src/client/views/GlobalKeyHandler.ts
+++ b/src/client/views/GlobalKeyHandler.ts
@@ -181,6 +181,8 @@ export default class KeyManager {
break;
case "a":
case "v":
+ this.printClipboard();
+ break;
case "x":
case "c":
stopPropagation = false;
@@ -194,6 +196,12 @@ export default class KeyManager {
};
});
+ async printClipboard() {
+ let text: string = await navigator.clipboard.readText();
+ console.log(text)
+ console.log(document.activeElement)
+ }
+
private ctrl_shift = action((keyname: string) => {
let stopPropagation = true;
let preventDefault = true;