fix: enable key accelerator flags for Windows and Linux (#14830)

* Fix Accelerator Flags for Windows and Linux

* Lint fix

* Lint whitespace
This commit is contained in:
Troy 2018-09-28 04:59:00 -07:00 committed by Charles Kerr
parent 40bc4afcb3
commit 0e1365fc94

View file

@ -91,7 +91,9 @@ bool TriggerAcceleratorTableCommand(AcceleratorTable* table,
if (base::ContainsKey(*table, accelerator)) {
const accelerator_util::MenuItem& item = (*table)[accelerator];
if (item.model->IsEnabledAt(item.position)) {
item.model->ActivatedAt(item.position);
const auto event_flags =
accelerator.MaskOutKeyEventFlags(accelerator.modifiers());
item.model->ActivatedAt(item.position, event_flags);
return true;
}
}