fix: preview key shortcut conflict
							parent
							
								
									26d62e4117
								
							
						
					
					
						commit
						dd7b9ddd85
					
				| 
						 | 
				
			
			@ -103,7 +103,7 @@ export default {
 | 
			
		|||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['req', 'user', 'oldReq', 'jwt', 'loading']),
 | 
			
		||||
    ...mapState(['req', 'user', 'oldReq', 'jwt', 'loading', 'show']),
 | 
			
		||||
    hasPrevious () {
 | 
			
		||||
      return (this.previousLink !== '')
 | 
			
		||||
    },
 | 
			
		||||
| 
						 | 
				
			
			@ -159,6 +159,10 @@ export default {
 | 
			
		|||
    key (event) {
 | 
			
		||||
      event.preventDefault()
 | 
			
		||||
 | 
			
		||||
      if (this.show !== null) {
 | 
			
		||||
        return
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if (event.which === 13 || event.which === 39) { // right arrow
 | 
			
		||||
        if (this.hasNext) this.next()
 | 
			
		||||
      } else if (event.which === 37) { // left arrow
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue