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

Use Linq.Append and Prepend. #1492

Merged
merged 1 commit into from Apr 3, 2018
Merged

Use Linq.Append and Prepend. #1492

merged 1 commit into from Apr 3, 2018

Conversation

huoyaoyuan
Copy link
Contributor

IntelliSense does not show them in completion list, but no error reported. Should be their bug.
Quite minor, and may be merged together with other improvements.

@@ -670,7 +670,7 @@ private bool handleKeyDown(InputState state, Key key, bool repeat)
{
IEnumerable<Drawable> queue = inputQueue;
if (!unfocusIfNoLongerValid())
queue = new[] { FocusedDrawable }.Concat(queue);
queue = queue.Append(FocusedDrawable);

This comment was marked as off-topic.

This comment was marked as off-topic.

@@ -696,7 +696,7 @@ private bool handleKeyUp(InputState state, Key key)
{
IEnumerable<Drawable> queue = inputQueue;
if (!unfocusIfNoLongerValid())
queue = new[] { FocusedDrawable }.Concat(queue);
queue = queue.Append(FocusedDrawable);

This comment was marked as off-topic.

@peppy peppy merged commit 6852878 into ppy:master Apr 3, 2018
@huoyaoyuan huoyaoyuan deleted the linq branch April 3, 2018 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants