aboutsummaryrefslogtreecommitdiff
path: root/src/components/SettingsModal.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-30 14:44:10 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-30 14:44:10 +1000
commit5af08938d47504cfc45d125b2ae9898534a1e5a1 (patch)
treee137a40fde6821b62533d941bb836309497d3335 /src/components/SettingsModal.vue
parent5412fb6a567bd573bfd72d7f2ec471a5f2cbb6a6 (diff)
Add ui-option touchDevice
Diffstat (limited to 'src/components/SettingsModal.vue')
-rw-r--r--src/components/SettingsModal.vue4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue
index 20259e9..16351c4 100644
--- a/src/components/SettingsModal.vue
+++ b/src/components/SettingsModal.vue
@@ -85,7 +85,7 @@
<label> <input type="checkbox" v-model="uiOpts.searchJumpMode"
@change="onSettingChg('UI', 'searchJumpMode')"/> Skip search animation </label>
</div>
- <div v-if="!onTouchDevice">
+ <div v-if="uiOpts.touchDevice == false">
<label> <input type="checkbox" v-model="uiOpts.disableShortcuts"
@change="onSettingChg('UI', 'disableShortcuts')"/> Disable keyboard shortcuts </label>
</div>
@@ -109,7 +109,6 @@ 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: {
@@ -122,7 +121,6 @@ export default defineComponent({
// 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: {