Skip to content

Commit d2b5c22

Browse files
committed
fix: restore cmd/ctrl+a select-all in reader popup textarea
1 parent ac9657c commit d2b5c22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/modules/popup.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export function buildReaderPopup(
139139

140140
const makeId = (type: string) =>
141141
`${config.addonRef}-${reader._instanceID}-${type}`;
142+
const onTextAreaCopy = getOnTextAreaCopy(popup, makeId("text"));
142143

143144
const hidePopupTextarea = getPref("enableHidePopupTextarea") as boolean;
144145
append(
@@ -244,6 +245,10 @@ export function buildReaderPopup(
244245
);
245246
},
246247
},
248+
{
249+
type: "keydown",
250+
listener: onTextAreaCopy as (ev: Event) => void,
251+
},
247252
{
248253
type: "dblclick",
249254
listener: (_ev) => {

0 commit comments

Comments
 (0)