<commit_before>
import Combokeys from 'combokeys-ftl'
import hookGlobalBind from 'combokeys-ftl/plugins/global-bind'

const combo = new Combokeys(document.documentElement)
hookGlobalBind(combo)

import {remote} from '../electron'

import os from '../util/os'
const osx = os.itchPlatform() === 'osx'

import * as actions from '../actions'

function openDevTools () {
  const win = remote.getCurrentWindow()
  win.webContents.openDevTools({detach: true})
}

async function mount (store, action) {
  // dev shortcuts
  combo.bindGlobal(['shift+f12', 'ctrl+shift+c', 'command+shift+c'], openDevTools)
  combo.bindGlobal(['shift+f5', 'shift+command+r'], () => window.location.reload())

  // user shortcuts
  combo.bindGlobal(['ctrl+f', 'command+f'], () => {
    store.dispatch(actions.focusSearch())
  })

  combo.bindGlobal(['ctrl+tab', 'ctrl+pagedown'], () => {
    store.dispatch(actions.showNextTab())
  })

  combo.bindGlobal(['ctrl+shift+tab', 'ctrl+pageup'], () => {
    store.dispatch(actions.showPreviousTab())
  })

  combo.bindGlobal(['enter'], () => {
    store.dispatch(actions.triggerOk())
  })

  combo.bindGlobal(['ctrl+enter', 'command+enter'], () => {
    store.dispatch(actions.triggerMainAction())
  })
<commit_msg>fix open devtools<commit_after>
import Combokeys from 'combokeys-ftl'
import hookGlobalBind from 'combokeys-ftl/plugins/global-bind'

const combo = new Combokeys(document.documentElement)
hookGlobalBind(combo)

import {remote} from 'electron'

import os from '../util/os'
const osx = os.itchPlatform() === 'osx'

import * as actions from '../actions'

function openDevTools () {
  console.log('opening dev tools')
  const win = remote.getCurrentWindow()
  win.webContents.openDevTools({detach: true})
}

async function mount (store, action) {
  // dev shortcuts
  combo.bindGlobal(['shift+f12', 'ctrl+shift+c', 'command+shift+c'], openDevTools)
  combo.bindGlobal(['shift+f5', 'shift+command+r'], () => window.location.reload())

  // user shortcuts
  combo.bindGlobal(['ctrl+f', 'command+f'], () => {
    store.dispatch(actions.focusSearch())
  })

  combo.bindGlobal(['ctrl+tab', 'ctrl+pagedown'], () => {
    store.dispatch(actions.showNextTab())
  })

  combo.bindGlobal(['ctrl+shift+tab', 'ctrl+pageup'], () => {
    store.dispatch(actions.showPreviousTab())
  })

  combo.bindGlobal(['enter'], () => {
    store.dispatch(actions.triggerOk())
  })

  combo.bindGlobal(['ctrl+enter', 'command+enter'], () => {
    store.dispatch(actions.triggerMainAction())
  })

{'fraction_non_alphanumeric': 0.18574859887910328, 'fraction_numerical': 0.0024019215372297837, 'mean_word_length': 4.95, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1868798', 'n_tokens_mistral': 835, 'n_tokens_neox': 815, 'n_words': 141}