mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 06:29:46 +08:00
[DE PE SSE mobile] Fix Bug 53974
This commit is contained in:
@ -598,14 +598,10 @@ class MainController extends Component {
|
||||
this.api.Resize();
|
||||
});
|
||||
|
||||
$$(window).on('popover:open popup:open sheet:open actions:open dialog:open', () => {
|
||||
$$(window).on('popover:open popup:open sheet:open actions:open dialog:open searchbar:enable', () => {
|
||||
this.api.asc_enableKeyEvents(false);
|
||||
});
|
||||
|
||||
$$(window).on('popover:close popup:close sheet:close actions:close dialog:close', () => {
|
||||
this.api.asc_enableKeyEvents(true);
|
||||
});
|
||||
|
||||
this.api.asc_registerCallback('asc_onDocumentUpdateVersion', this.onUpdateVersion.bind(this));
|
||||
this.api.asc_registerCallback('asc_onServerVersion', this.onServerVersion.bind(this));
|
||||
this.api.asc_registerCallback('asc_onDocumentName', this.onDocumentName.bind(this));
|
||||
|
||||
@ -94,14 +94,6 @@ const Search = withTranslation()(props => {
|
||||
const { t } = props;
|
||||
const _t = t('Settings', {returnObjects: true});
|
||||
|
||||
useEffect(() => {
|
||||
if(f7.searchbar.get('.searchbar')?.enabled && Device.phone) {
|
||||
const api = Common.EditorApi.get();
|
||||
$$('.searchbar-input').focus();
|
||||
api.asc_enableKeyEvents(false);
|
||||
}
|
||||
}, []);
|
||||
|
||||
const onSearchQuery = params => {
|
||||
const api = Common.EditorApi.get();
|
||||
|
||||
|
||||
@ -330,14 +330,10 @@ class MainController extends Component {
|
||||
this.api.Resize();
|
||||
});
|
||||
|
||||
$$(window).on('popup:open sheet:open actions:open', () => {
|
||||
$$(window).on('popup:open sheet:open actions:open searchbar:enable', () => {
|
||||
this.api.asc_enableKeyEvents(false);
|
||||
});
|
||||
|
||||
$$(window).on('popup:close sheet:close actions:close', () => {
|
||||
this.api.asc_enableKeyEvents(true);
|
||||
});
|
||||
|
||||
this.api.asc_registerCallback('asc_onDocumentContentReady', this.onDocumentContentReady.bind(this));
|
||||
this.api.asc_registerCallback('asc_onDocumentUpdateVersion', this.onUpdateVersion.bind(this));
|
||||
this.api.asc_registerCallback('asc_onServerVersion', this.onServerVersion.bind(this));
|
||||
|
||||
@ -74,14 +74,6 @@ const Search = withTranslation()(props => {
|
||||
const { t } = props;
|
||||
const _t = t('View.Settings', {returnObjects: true});
|
||||
|
||||
useEffect(() => {
|
||||
if (f7.searchbar.get('.searchbar')?.enabled && Device.phone) {
|
||||
const api = Common.EditorApi.get();
|
||||
$$('.searchbar-input').focus();
|
||||
api.asc_enableKeyEvents(false);
|
||||
}
|
||||
});
|
||||
|
||||
const onSearchQuery = params => {
|
||||
const api = Common.EditorApi.get();
|
||||
|
||||
|
||||
@ -369,11 +369,11 @@ class MainController extends Component {
|
||||
this.api.asc_Resize();
|
||||
});
|
||||
|
||||
$$(window).on('popover:open popup:open sheet:open actions:open', () => {
|
||||
$$(window).on('popover:open popup:open sheet:open actions:open searchbar:enable', () => {
|
||||
this.api.asc_enableKeyEvents(false);
|
||||
});
|
||||
|
||||
$$(window).on('popover:close popup:close sheet:close actions:close', () => {
|
||||
$$(window).on('popover:close popup:close sheet:close actions:close searchbar:disable', () => {
|
||||
this.api.asc_enableKeyEvents(true);
|
||||
});
|
||||
|
||||
|
||||
@ -140,8 +140,8 @@ const Search = withTranslation()(props => {
|
||||
useEffect(() => {
|
||||
if (f7.searchbar.get('.searchbar')?.enabled && Device.phone) {
|
||||
const api = Common.EditorApi.get();
|
||||
$$('.searchbar-input').focus();
|
||||
api.asc_enableKeyEvents(false);
|
||||
$$('.searchbar-input').focus();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user