You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
Desktop, Mobile: Improve focus handling
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import PostMessageService, { MessageResponse, ResponderComponentType } from '@joplin/lib/services/PostMessageService';
|
||||
import * as React from 'react';
|
||||
import { reg } from '@joplin/lib/registry';
|
||||
import { focus } from '@joplin/lib/utils/focusHandler';
|
||||
|
||||
interface Props {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
|
||||
@ -119,7 +120,7 @@ export default class NoteTextViewerComponent extends React.Component<Props, any>
|
||||
|
||||
public focus() {
|
||||
if (this.webviewRef_.current) {
|
||||
this.webviewRef_.current.focus();
|
||||
focus('NoteTextViewer::focus', this.webviewRef_.current);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user