1
0
forked from noxious/client

Possible keybinding fix

This commit is contained in:
Dennis Postma 2024-07-12 00:31:28 +02:00
parent 7c23b4e37e
commit cf19bb4baa
3 changed files with 3 additions and 2 deletions

View File

@ -162,6 +162,9 @@ onBeforeUnmount(() => {
function initKeyShortcuts (event: KeyboardEvent) {
if (!zoneEditorStore.zone) return
// prevent if focussed on input
if (document.activeElement?.tagName === 'INPUT') return
if (event.key === 'm') {
zoneEditorStore.setTool('move')
}

View File

@ -52,7 +52,6 @@ function fetchZones() {
function loadZone(id: number) {
console.log('loadZone', id)
socket.connection.emit('gm:zone_editor:zone:request', { zoneId: id }, (response: Zone) => {
console.log('!!zone', response)
zoneEditorStore.setZone(response)
});
zoneEditorStore.toggleZoneListModal()

View File

@ -30,7 +30,6 @@ export const useSocketStore: StoreDefinition = defineStore('socket', {
// When we can't reconnect, disconnect
this.connection.on('reconnect_failed', () => {
console.log('Reconnect failed')
this.disconnectSocket()
})
},