| Index: chrome/browser/ui/cocoa/html_dialog_window_controller.mm
|
| ===================================================================
|
| --- chrome/browser/ui/cocoa/html_dialog_window_controller.mm (revision 71220)
|
| +++ chrome/browser/ui/cocoa/html_dialog_window_controller.mm (working copy)
|
| @@ -4,7 +4,6 @@
|
|
|
| #import "chrome/browser/ui/cocoa/html_dialog_window_controller.h"
|
|
|
| -#include "app/keyboard_codes.h"
|
| #include "base/logging.h"
|
| #include "base/scoped_nsobject.h"
|
| #include "base/sys_string_conversions.h"
|
| @@ -17,6 +16,7 @@
|
| #include "chrome/common/native_web_keyboard_event.h"
|
| #include "gfx/size.h"
|
| #include "ipc/ipc_message.h"
|
| +#include "ui/base/keycodes/keyboard_codes.h"
|
|
|
| // Thin bridge that routes notifications to
|
| // HtmlDialogWindowController's member variables.
|
| @@ -195,8 +195,8 @@
|
| // TODO(thakis): It would be nice to get cancel: to work somehow.
|
| // Bug: http://code.google.com/p/chromium/issues/detail?id=32828 .
|
| if (event.type == NativeWebKeyboardEvent::RawKeyDown &&
|
| - ((event.windowsKeyCode == app::VKEY_ESCAPE) ||
|
| - (event.windowsKeyCode == app::VKEY_OEM_PERIOD &&
|
| + ((event.windowsKeyCode == ui::VKEY_ESCAPE) ||
|
| + (event.windowsKeyCode == ui::VKEY_OEM_PERIOD &&
|
| event.modifiers == NativeWebKeyboardEvent::MetaKey))) {
|
| [controller_ close];
|
| return;
|
|
|