Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[8.1/UWP] ListView allows selection with enter key #241

Merged
merged 1 commit into from
Jul 19, 2016

Conversation

pauldipietro
Copy link
Contributor

@pauldipietro pauldipietro commented Jun 29, 2016

Description of Change

Putting ListView in line with standard behavior where ItemClick would normally fire off when pressing the enter key to select a ListView item.

Bugs Fixed

https://bugzilla.xamarin.com/show_bug.cgi?id=42188

API Changes

None

Behavioral Changes

If a user had a custom renderer with behavior linked to KeyUp for the enter key, something unintentional could potentially occur, though perhaps unlikely.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard
  • Consolidate commits as makes sense

@samhouts
Copy link
Member

samhouts commented Jul 7, 2016

👍 with passing UI tests

@@ -521,6 +526,12 @@ void OnListItemClicked(int index)
#endif
}

void OnEnterKeyPressed(object sender, KeyRoutedEventArgs e)

Choose a reason for hiding this comment

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

OnKeyPressed

@jassmith jassmith merged commit a80d5c0 into master Jul 19, 2016
@rmarinho rmarinho deleted the fix-bugzilla42188 branch August 3, 2016 09:09
@samhouts samhouts mentioned this pull request Feb 23, 2017
4 tasks
@samhouts samhouts added this to the 2.3.2 milestone Jun 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants