summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 00:31:45 +0000
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 00:31:45 +0000
commit44fbb5ea6a624a60ccc5a5e566a745f91bc2b553 (patch)
treeedfca64469ea88e4d44c07b3cd9b1170218fe4ef /chrome/browser/views
parent6c5006f8960fcf368f198a83b626fd4f61859af4 (diff)
downloadchromium_src-44fbb5ea6a624a60ccc5a5e566a745f91bc2b553.zip
chromium_src-44fbb5ea6a624a60ccc5a5e566a745f91bc2b553.tar.gz
chromium_src-44fbb5ea6a624a60ccc5a5e566a745f91bc2b553.tar.bz2
Fixing 4687: Enter in FirstRun UI starts import when Customize link is focued.
We now properly handle Enter when links are focused. I also made it so that links navigate on KeyDown (when you press Enter or Space) instead of on KeyUp. This matches WebKit and native Windows behavior. Review URL: http://codereview.chromium.org/13321 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/star_toggle.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/views/star_toggle.cc b/chrome/browser/views/star_toggle.cc
index 4f986a3..2a16a20 100644
--- a/chrome/browser/views/star_toggle.cc
+++ b/chrome/browser/views/star_toggle.cc
@@ -63,7 +63,7 @@ void StarToggle::OnMouseReleased(const views::MouseEvent& e,
}
bool StarToggle::OnKeyPressed(const views::KeyEvent& e) {
- if ((e.GetCharacter() == L' ') || (e.GetCharacter() == L'\n')) {
+ if ((e.GetCharacter() == VK_SPACE) || (e.GetCharacter() == VK_RETURN)) {
SwitchState();
return true;
}