summaryrefslogtreecommitdiffstats
path: root/views/controls/combobox/combobox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/combobox/combobox.cc')
-rw-r--r--views/controls/combobox/combobox.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/combobox/combobox.cc b/views/controls/combobox/combobox.cc
index 5c5596f..e184dcb 100644
--- a/views/controls/combobox/combobox.cc
+++ b/views/controls/combobox/combobox.cc
@@ -69,10 +69,10 @@ void Combobox::SetEnabled(bool flag) {
native_wrapper_->UpdateEnabled();
}
-// VK_ESCAPE should be handled by this view when the drop down list is active.
+// VKEY_ESCAPE should be handled by this view when the drop down list is active.
// In other words, the list should be closed instead of the dialog.
bool Combobox::SkipDefaultKeyEventProcessing(const KeyEvent& e) {
- if (e.GetCharacter() != base::VKEY_ESCAPE ||
+ if (e.GetKeyCode() != base::VKEY_ESCAPE ||
e.IsShiftDown() || e.IsControlDown() || e.IsAltDown()) {
return false;
}