Skip to content

Commit

Permalink
Always use custom keypad, regardless of input modality.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Jun 19, 2024
1 parent a9b692b commit 3dbe259
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -258,9 +257,6 @@
isMobile() {
return this.windowBreakpoint < 3;
},
usesTouch() {
return isTouchDevice && !isMouseUsed;
},
/* eslint-disable kolibri/vue-no-unused-properties */
availableHints() {
/* eslint-enable */
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit 3dbe259

Please sign in to comment.