Skip to content

Commit 0b0aa9c

Browse files
committed
fix: export all functions
1 parent 19ffa09 commit 0b0aa9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/selectable-overlay.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function makeOverlaySelectable(editor: TextEditor, overlayElement: HTMLEl
1515
- focus on the datatip once the text is selected (cursor gets disabled temporarily)
1616
- remove focus once mouse leaves
1717
*/
18-
function overlayFocusFix(editor: TextEditor, element: HTMLElement) {
18+
export function overlayFocusFix(editor: TextEditor, element: HTMLElement) {
1919
const editorComponent = atom.views.getView(editor).getComponent()
2020
element.addEventListener("mousedown", () => {
2121
blurEditor(editorComponent)
@@ -54,12 +54,12 @@ export async function copyListener(event: KeyboardEvent) {
5454
}
5555
} // TODO we should not need to manually listen for copy paste
5656

57-
function focusEditor(editorComponent: TextEditorComponent) {
57+
export function focusEditor(editorComponent: TextEditorComponent) {
5858
// @ts-ignore
5959
editorComponent?.didFocus()
6060
}
6161

62-
function blurEditor(editorComponent: TextEditorComponent) {
62+
export function blurEditor(editorComponent: TextEditorComponent) {
6363
// @ts-ignore
6464
editorComponent?.didBlurHiddenInput({
6565
relatedTarget: null,

0 commit comments

Comments
 (0)