[DE PE SSE mobile] Fix Bug 53974

This commit is contained in:
SergeyEzhin
2023-03-16 18:48:52 +04:00
parent 159e2bc579
commit 7afe2c62fa
6 changed files with 5 additions and 29 deletions

View File

@ -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));

View File

@ -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();

View File

@ -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));

View File

@ -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();

View File

@ -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);
});

View File

@ -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();
}
});