The main goal of this PR is to enable productivity features already present in some web applications by (optionally) using common desktop browser key bindings rather than the thumb-key optimized BB10 layout while keeping the BB10 bindings default.
Main Features
A new bool setting called useBB10KeyboardShortcuts was added
The former Keyboard logic been restructured in a more modular way and pulled out of FirstPage.qml. Stylewise I chose verbosity over brevity to keep it easier to read.
Some "common" key bindings have been added
An overview page for the currently selected bindings has been created. Its content is generated from the set bindings themselves. If keys are pressed on the overview page, the corresponding row is highlighted and scrolled into view.
German translation for new strings is included.
Additional Changes
searchText: Hide field on Esc press; Focus Webview (to re-enable key bindings) after hiding/searching
urlText: append .com with Ctrl, .net with Shift and .org with Ctrl+Shift; focus webView on Esc press.
Bookmarks view: hide on Esc press
Testing
The binding logic was tested on a Gemini and a TOHKBD. Due to OTG adapter unavailability, no standard keyboard via USB-Host was tested. BT keyboard wasn't tested, as well.
Gemini PDA: Works as expected.
Jolla Phone with TOHKBD2: While the TOHKBD works, it does not support sending Ctrl + Shift at the same time (I think those keys are seen as 'sticky' until another key is pressed). At least for "Backtab", a workaround was easily doable without conflicting keys. I'd consider this state useable, even with some "desktop style" combinations not working.
The main goal of this PR is to enable productivity features already present in some web applications by (optionally) using common desktop browser key bindings rather than the thumb-key optimized BB10 layout while keeping the BB10 bindings default.
Main Features
Additional Changes
Testing
The binding logic was tested on a Gemini and a TOHKBD. Due to OTG adapter unavailability, no standard keyboard via USB-Host was tested. BT keyboard wasn't tested, as well.