Skip to content

Commit

Permalink
Split isomorphic QWERTY code to a re-usable package
Browse files Browse the repository at this point in the history
ref #336
  • Loading branch information
frostburn committed Jan 3, 2024
1 parent 679b3d8 commit 2ee3041
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 317 deletions.
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"pinia": "^2.1.7",
"qs": "^6.11.2",
"scale-workshop-core": "github:xenharmonic-devs/scale-workshop-core#v0.0.9",
"isomorphic-qwerty": "github:xenharmonic-devs/isomorphic-qwerty#v0.0.1",
"temperaments": "^0.4.6",
"vue": "^3.3.4",
"vue-router": "^4.2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ScaleWorkshopOneData } from '@/scale-workshop-one'
import type { Input, Output } from 'webmidi'
import { computeWhiteIndices } from '@/midi'
import { MidiIn, midiKeyInfo, MidiOut } from 'xen-midi'
import { Keyboard, type CoordinateKeyboardEvent } from '@/keyboard'
import { Keyboard, type CoordinateKeyboardEvent } from 'isomorphic-qwerty'
import { decodeQuery, encodeQuery, type DecodedState } from '@/url-encode'
import { debounce } from '@/utils'
import { version } from '../package.json'
Expand Down
2 changes: 1 addition & 1 deletion src/keyboard-mapping.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mmod } from 'xen-dev-utils'
import { CODES_LAYER_1 } from './keyboard'
import { CODES_LAYER_1 } from 'isomorphic-qwerty'

export const DIGIT_ROW = CODES_LAYER_1[0].slice(1) as string[]
export const QWERTY_ROW = CODES_LAYER_1[1].slice(1) as string[]
Expand Down
315 changes: 0 additions & 315 deletions src/keyboard.ts

This file was deleted.

0 comments on commit 2ee3041

Please sign in to comment.