refactor(tracker/gioui): use gioui/x/explorer instead of home made file explorer

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2023-07-08 12:17:41 +03:00
parent 8c4f7ee61f
commit 3da62179e4
7 changed files with 114 additions and 422 deletions

View File

@ -48,13 +48,6 @@ var noteMap = map[string]int{
// KeyEvent handles incoming key events and returns true if repaint is needed.
func (t *Tracker) KeyEvent(e key.Event, o *op.Ops) {
if e.State == key.Press {
if t.OpenSongDialog.Visible ||
t.SaveSongDialog.Visible ||
t.SaveInstrumentDialog.Visible ||
t.OpenInstrumentDialog.Visible ||
t.ExportWavDialog.Visible {
return
}
switch e.Name {
case "C":
if e.Modifiers.Contain(key.ModShortcut) {