Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Keypress Chromium

Post Reply
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Keypress Chromium

Post by salvadordf »

I'm sorry but I don't understand the question.

The MiniBrowser and FullScreenBrowser demos have examples of those events to handle VK_F12 and VK_ESCAPE.

The CEF3 code comments for the PreKeyEvent are these :

Code: Select all

  ///
  // Called before a keyboard event is sent to the renderer. |event| contains
  // information about the keyboard event. |os_event| is the operating system
  // event message, if any. Return true (1) if the event was handled or false
  // (0) otherwise. If the event will be handled in on_key_event() as a keyboard
  // shortcut set |is_keyboard_shortcut| to true (1) and return false (0).
  ///
For the KeyEvent :

Code: Select all

  ///
  // Called after the renderer and JavaScript in the page has had a chance to
  // handle the event. |event| contains information about the keyboard event.
  // |os_event| is the operating system event message, if any. Return true (1)
  // if the keyboard event was handled or false (0) otherwise.
  ///
https://github.com/chromiumembedded/cef ... ler_capi.h
http://magpcss.org/ceforum/apidocs3/pro ... ndler.html
Post Reply