Skip to content

Commit

Permalink
perf: web terminal contextmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc authored and BaiJiangJie committed Oct 17, 2024
1 parent 529ac87 commit a6e2550
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/src/hooks/helper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export const handleContextMenu = async (
termSelectionText: string,
k8s_id: string | undefined
) => {
e.preventDefault();
if (e.ctrlKey || config.quickPaste !== '1') return;

let text: string = '';
Expand All @@ -51,7 +50,7 @@ export const handleContextMenu = async (
} catch (e) {
if (termSelectionText !== '') text = termSelectionText;
}

e.preventDefault();
if (k8s_id) {
socket.send(
JSON.stringify({
Expand Down

0 comments on commit a6e2550

Please sign in to comment.