File tree Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<section
3
- class ="
4
- flex
5
- items-center
6
- justify-between
7
- px-4
8
- py-2
9
- mb-4
10
- sticky
11
- top-[70px]
12
- dark:bg-gray-700
13
- bg-gray-300
14
- dark:bg-opacity-50
15
- bg-opacity-50
16
- backdrop-blur-sm
17
- rounded-md
18
- shadow-lg
19
- border border-gray-500
20
- w-full
21
- z-10
22
- "
3
+ class =" flex items-center justify-between px-4 py-2 mb-4 sticky top-[70px] dark:bg-gray-700 bg-gray-300 dark:bg-opacity-50 bg-opacity-50 backdrop-blur-sm rounded-md shadow-lg border border-gray-500 w-full z-10"
23
4
>
24
5
<div class =" flex gap-4" >
25
6
<ToggleInSync />
@@ -92,7 +73,11 @@ export default Vue.extend({
92
73
methods: {
93
74
handleCtrlC(event : KeyboardEvent ) {
94
75
const { metaKey, ctrlKey, key } = event
95
- if ((metaKey || ctrlKey ) && key === ' c' ) {
76
+ if (
77
+ (metaKey || ctrlKey ) &&
78
+ key === ' c' &&
79
+ ! window ?.getSelection ()?.toString ()
80
+ ) {
96
81
const button: HTMLButtonElement = document .getElementById (
97
82
' copyLinkButton'
98
83
) as HTMLButtonElement
You can’t perform that action at this time.
0 commit comments