mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
views: Support per-accelerator priority config (fixes #3598)
This commit is contained in:
@ -669,7 +669,8 @@ void CefWindowImpl::SetAccelerator(int command_id,
|
||||
int key_code,
|
||||
bool shift_pressed,
|
||||
bool ctrl_pressed,
|
||||
bool alt_pressed) {
|
||||
bool alt_pressed,
|
||||
bool high_priority) {
|
||||
CEF_REQUIRE_VALID_RETURN_VOID();
|
||||
if (!widget_) {
|
||||
return;
|
||||
@ -698,7 +699,10 @@ void CefWindowImpl::SetAccelerator(int command_id,
|
||||
views::FocusManager* focus_manager = widget_->GetFocusManager();
|
||||
DCHECK(focus_manager);
|
||||
focus_manager->RegisterAccelerator(
|
||||
accelerator, ui::AcceleratorManager::kNormalPriority, this);
|
||||
accelerator,
|
||||
high_priority ? ui::AcceleratorManager::kHighPriority
|
||||
: ui::AcceleratorManager::kNormalPriority,
|
||||
this);
|
||||
}
|
||||
|
||||
void CefWindowImpl::RemoveAccelerator(int command_id) {
|
||||
|
Reference in New Issue
Block a user