diff options
Diffstat (limited to 'src/components/SettingsModal.vue')
| -rw-r--r-- | src/components/SettingsModal.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue index 6512aa4..20259e9 100644 --- a/src/components/SettingsModal.vue +++ b/src/components/SettingsModal.vue @@ -85,6 +85,10 @@ <label> <input type="checkbox" v-model="uiOpts.searchJumpMode" @change="onSettingChg('UI', 'searchJumpMode')"/> Skip search animation </label> </div> + <div v-if="!onTouchDevice"> + <label> <input type="checkbox" v-model="uiOpts.disableShortcuts" + @change="onSettingChg('UI', 'disableShortcuts')"/> Disable keyboard shortcuts </label> + </div> </div> <s-button class="mx-auto mt-2" :style="{color: uiOpts.textColor, backgroundColor: uiOpts.bgColor}" @click="onResetAll"> @@ -105,6 +109,7 @@ import SButton from './SButton.vue'; import CloseIcon from './icon/CloseIcon.vue'; import {UiOptions, OptionType, getDefaultLytOpts, getDefaultUiOpts} from '../lib'; import {LayoutOptions} from '../layout'; +import {onTouchDevice} from '../util'; export default defineComponent({ props: { @@ -113,10 +118,11 @@ export default defineComponent({ }, data(){ return { - saved: false, // Set to true after a setting is saved sweepLeaves: this.lytOpts.layoutType == 'sweep', // For making only two of 'layoutType's values available for user selection + saved: false, // Set to true after a setting is saved settingChgTimeout: 0, // Use to throttle some setting-change handling + onTouchDevice: onTouchDevice(), }; }, computed: { |
