Lona / Lona

A tool for defining design systems and using them to generate cross-platform UI code, Sketch files, and other artifacts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Lona Studio] Pressing "Enter" should open a project on welcome screen

dabbott opened this issue · comments

Summary

Currently the welcome screen supports keyboard navigation through the list of recently opened projects, but pressing the "Enter" key doesn't open a project.

screen_shot_2019-03-05_at_9_09_01_am

We're copying the Xcode welcome window's behavior here: we want double-click to open a project (which it currently does) and "Enter" to open a project, but we don't want single-click to open a project.

Implementation

The project list component is in LonaStudio/Workspace/RecentProjectsList.swift. I think overriding the keyDown method and handling the return key (NSCarriageReturnCharacter) will be simplest, but I'm open to anything that works.

Tentatively for @klymenkoo