[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/2php/cefpython/cefpython58/src/client_handler/keyboard_handler.h [Back]  [Original]

// Copyright (c) 2012 CEF Python, see the Authors file.
// All rights reserved. Licensed under BSD 3-clause license.
// Project website: https://github.com/cztomczak/cefpython

#include "common/cefpython_public_api.h"
#include "include/cef_keyboard_handler.h"


class KeyboardHandler : public CefKeyboardHandler
{
public:
    KeyboardHandler(){}
    virtual ~KeyboardHandler(){}

    bool OnPreKeyEvent(CefRefPtr browser,
                       const CefKeyEvent& event,
                       CefEventHandle os_event,
                       bool* is_keyboard_shortcut) override;

    bool OnKeyEvent(CefRefPtr browser,
                    const CefKeyEvent& event,
                    CefEventHandle os_event) override;

private:
    IMPLEMENT_REFCOUNTING(KeyboardHandler);
};

Web Proxy Viewer  |  New URL  |  Original Page