From 3dbe259cc39dea0a8da9c65352a0d022af0214e7 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Tue, 18 Jun 2024 09:38:08 -0700 Subject: [PATCH] Always use custom keypad, regardless of input modality. --- .../assets/src/views/PerseusRendererIndex.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kolibri/plugins/perseus_viewer/assets/src/views/PerseusRendererIndex.vue b/kolibri/plugins/perseus_viewer/assets/src/views/PerseusRendererIndex.vue index bb26bfec676..1b83cbdf0cd 100644 --- a/kolibri/plugins/perseus_viewer/assets/src/views/PerseusRendererIndex.vue +++ b/kolibri/plugins/perseus_viewer/assets/src/views/PerseusRendererIndex.vue @@ -29,7 +29,6 @@ import ZipFile from 'kolibri-zip'; import { Mapper, defaultFilePathMappers } from 'kolibri-zip/src/fileUtils'; import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow'; - import { isTouchDevice, isMouseUsed } from 'kolibri.utils.browserInfo'; import { defer } from 'underscore'; import { createElement as e } from 'react'; import { render, unmountComponentAtNode } from 'react-dom'; @@ -258,9 +257,6 @@ isMobile() { return this.windowBreakpoint < 3; }, - usesTouch() { - return isTouchDevice && !isMouseUsed; - }, /* eslint-disable kolibri/vue-no-unused-properties */ availableHints() { /* eslint-enable */ @@ -388,7 +384,7 @@ onFocusChange: this.dismissMessage, onInputError: logging.error, isMobile: this.isMobile, - customKeypad: this.usesTouch, + customKeypad: true, readOnly: !this.interactive, hintProgressColor: this.$themeTokens.primary, },