File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -476,9 +476,8 @@ export class DataTipManager {
476
476
invalidate : "never" ,
477
477
} )
478
478
479
- // makes the text selectable with the help of user-select: text
480
- element . setAttribute ( "tabindex" , "-1" )
481
- overlayFocusFix ( editor , element )
479
+ //
480
+ makeOverlaySelectable ( editor , element )
482
481
483
482
editor . decorateMarker ( overlayMarker , {
484
483
type : "overlay" ,
@@ -522,6 +521,12 @@ export class DataTipManager {
522
521
}
523
522
}
524
523
524
+ /** makes the text selectable with the help of user-select: text */
525
+ function makeOverlaySelectable ( editor : TextEditor , overlayElement : HTMLElement ) {
526
+ overlayElement . setAttribute ( "tabindex" , "-1" )
527
+ overlayFocusFix ( editor , overlayElement )
528
+ }
529
+
525
530
function overlayFocusFix ( editor : TextEditor , element : HTMLElement ) {
526
531
const editorComponent = atom . views . getView ( editor ) . getComponent ( )
527
532
/**
You can’t perform that action at this time.
0 commit comments