mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 17:07:31 +00:00
feat(nc-gui): prevent shift / cntOrCtrl key is pressing for altKey cases
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { useRoute, useUIPermission } from '#imports'
|
||||
import { isMac, useRoute, useUIPermission } from '#imports'
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
@@ -17,7 +17,8 @@ const isShareBaseAllowed = computed(
|
||||
)
|
||||
|
||||
useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
|
||||
if (e.altKey) {
|
||||
const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey
|
||||
if (e.altKey && !e.shiftKey && !cmdOrCtrl) {
|
||||
switch (e.keyCode) {
|
||||
case 73: {
|
||||
// ALT + I
|
||||
|
||||
Reference in New Issue
Block a user