-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fdo: Using Alt+Left or Alt+Right to go back/forward results in error #20
Comments
This is coming from old code, when that code had access to the WebKitWebView object. Nowadays that object is kept by cog.c, and the platform-fdo's reference is null; hence the error. IMO, the correct way to fix this is to define a key-binding interface in cog's launcher and move these calls there. |
@elima Indeed, having some way of allowing Cog to request key bindings from a platform plug-in would be the best. In the meantime, if we want to fix the hardcoded keybindings provided by the FDO platform plug-in, a stopgap measure could to obtain the Web view with: WebKitWebView *web_view = cog_launcher_get_web_view (cog_launcher_get_default ()) This will work fine due to |
Using the API to retrieve the singleton avoids needing to keep a reference to it in in a static variable. Also, this makes it possible to retrieve the WebKitWebView to handle the keybindings. Fixes #20
Using the API to retrieve the singleton avoids needing to keep a reference to it in in a static variable. Also, this makes it possible to retrieve the WebKitWebView to handle the keybindings. Fixes #20
Using
Alt+Left
:Conversely, with
Alt+Right
:The text was updated successfully, but these errors were encountered: