mirror of
https://github.com/electron/electron.git
synced 2026-01-27 08:18:28 -05:00
Use keydown event for accelerator.
This follows the behaivor on OS X, fixed #174.
This commit is contained in:
@@ -417,7 +417,7 @@ void NativeWindowWin::UpdateDraggableRegions(
|
||||
void NativeWindowWin::HandleKeyboardEvent(
|
||||
content::WebContents*,
|
||||
const content::NativeWebKeyboardEvent& event) {
|
||||
if (event.type == WebKit::WebInputEvent::KeyUp) {
|
||||
if (event.type == WebKit::WebInputEvent::RawKeyDown) {
|
||||
ui::Accelerator accelerator(
|
||||
static_cast<ui::KeyboardCode>(event.windowsKeyCode),
|
||||
content::GetModifiersFromNativeWebKeyboardEvent(event));
|
||||
|
||||
Reference in New Issue
Block a user