mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Add support for intercepting key events (Issue #63, patch by cpinfold.joinerysoft)
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@70 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
		@@ -520,6 +520,23 @@ public:
 | 
			
		||||
    return RV_CONTINUE;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Called when the browser component receives a keyboard event.
 | 
			
		||||
  // |type| is the type of keyboard event (see |KeyEventType|).
 | 
			
		||||
  // |code| is the windows scan-code for the event.
 | 
			
		||||
  // |modifiers| is a set of bit-flags describing any pressed modifier keys.
 | 
			
		||||
  // |isSystemKey| is set if Windows considers this a 'system key' message;
 | 
			
		||||
  //   (see http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx)
 | 
			
		||||
  // Return RV_HANDLED if the keyboard event was handled or RV_CONTINUE
 | 
			
		||||
  // to allow the browser component to handle the event.
 | 
			
		||||
  RetVal HandleKeyEvent(CefRefPtr<CefBrowser> browser,
 | 
			
		||||
                        KeyEventType type,
 | 
			
		||||
                        int code,
 | 
			
		||||
                        int modifiers,
 | 
			
		||||
                        bool isSystemKey)
 | 
			
		||||
  {
 | 
			
		||||
    return RV_CONTINUE;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Retrieve the current navigation state flags
 | 
			
		||||
  void GetNavState(bool &isLoading, bool &canGoBack, bool &canGoForward)
 | 
			
		||||
  {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user