Sha256: 5278acc8a2a3aa4c1b2915378cb11d80686908245d561e40c92f83d0f5ff7dfa

Contents?: true

Size: 259 Bytes

Versions: 27

Compression:

Stored size: 259 Bytes

Contents

import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static get targets() {
    return [ "confirm" ]
  }
  
  connect() {
  }
  
  confirmClick(event) {
    if (event.key === 'Enter') this.confirmTarget.click()
  }
  
}

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
spina-2.18.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.17.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.16.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.15.1 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.15.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.14.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.13.1 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.13.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.12.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.11.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.10.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.9.1 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.9.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.8.1 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.8.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.7.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.6.2 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.6.1 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.6.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js
spina-2.5.0 app/assets/javascripts/spina/controllers/shortcuts_controller.js