Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #325: Pressing "Return" key opens the selected project #328

Merged
merged 1 commit into from Mar 7, 2019

Conversation

vldmrkl
Copy link
Contributor

@vldmrkl vldmrkl commented Mar 7, 2019

What

This PR contains fix for #325: it adds support for opening selected project from welcome screen when "Enter" was pressed.

mar-06-2019 21-01-59

In order to implement this feature, I overrode keyDown function inside the extension of RecentProjectsTableView, where I basically check if the keyCode of the pressed code is equalled to carriage return key code (36).

cc: @dabbott, @ryngonzalez

Copy link
Collaborator

@ryngonzalez ryngonzalez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@dabbott
Copy link
Member

dabbott commented Mar 7, 2019

Great job, looks good! Later today or tomorrow I'll post some more issues if you're interested in picking up another.

@dabbott dabbott merged commit 40bdddc into Lona:master Mar 7, 2019
@dabbott
Copy link
Member

dabbott commented Mar 7, 2019

Oh! I just realized (after merging) that this will crash if no rows are selected, since tableView.selected is -1 if there's no selection. I just made a quick fix and added tableView.selectedRow >= 0 to the condition.

@vldmrkl vldmrkl deleted the feature/enter-project branch March 7, 2019 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants