From 5af08938d47504cfc45d125b2ae9898534a1e5a1 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Thu, 30 Jun 2022 14:44:10 +1000
Subject: Add ui-option touchDevice

---
 src/components/SettingsModal.vue | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/components/SettingsModal.vue')

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: {
-- 
cgit v1.2.3

