Handle keyboard events with AtomEventProcessingWindow.
Some system events like cmd+` will be handled by it automatically.
This commit is contained in:
parent
f62b00eaac
commit
26d6df7852
5 changed files with 24 additions and 5 deletions
|
@ -49,6 +49,11 @@ class NativeWindowMac : public NativeWindow {
|
|||
protected:
|
||||
void SetNonLionFullscreen(bool fullscreen);
|
||||
|
||||
// Implementations of content::WebContentsDelegate.
|
||||
virtual void HandleKeyboardEvent(
|
||||
content::WebContents*,
|
||||
const content::NativeWebKeyboardEvent&) OVERRIDE;
|
||||
|
||||
private:
|
||||
void InstallView();
|
||||
void UninstallView();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue