Merge lp:~michael-sheldon/oxide/fix-1400372 into lp:~oxide-developers/oxide/oxide.trunk

Proposed by Michael Sheldon
Status: Merged
Merged at revision: 1023
Proposed branch: lp:~michael-sheldon/oxide/fix-1400372
Merge into: lp:~oxide-developers/oxide/oxide.trunk
Diff against target: 21 lines (+3/-1)
1 file modified
qt/core/browser/oxide_qt_web_view.cc (+3/-1)
To merge this branch: bzr merge lp:~michael-sheldon/oxide/fix-1400372
Reviewer Review Type Date Requested Status
Olivier Tilloy (community) Approve
Chris Coulson Pending
Review via email: mp+254086@code.launchpad.net

Commit message

Disables showing the keyboard if the currently focused node isn't editable.

Description of the change

Disables showing the keyboard if the currently focused node isn't editable.

To post a comment you must log in.
Revision history for this message
Olivier Tilloy (osomon) wrote :

The change seems to make sense, however I just tested it on the gmail use case and here’s what I’m seeing:

 1) if I type in a search string and press the enter key, the osk is not dismissed (current behaviour, this hasn’t improved)

 2) I can manually dismiss the keyboard (by swiping it away), and it remains hidden (this has improved, good)

 3) if I now tap on the search field again, it gets focus (the caret is blinking), however the osk doesn’t show up; tapping multiple times doesn’t improve the situation

 4) if I then press the Cancel button and tap on the search field again, the osk shows up again

Step #2 is an improvement, but step #3 looks like a step backward. I think this needs more investigation.

1016. By Michael Sheldon

Check if the keyboard should be shown when focus information is updated

Revision history for this message
Olivier Tilloy (osomon) wrote :

This looks good to me now.

One issue remains with gmail: when validating a search by pressing the return key, the text field (apparently) looses focus, but the keyboard is not automatically dismissed.
However the user can manually dismiss it and it won’t re-appear until needed. So that’s definitely an improvement over the current situation.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qt/core/browser/oxide_qt_web_view.cc'
2--- qt/core/browser/oxide_qt_web_view.cc 2015-01-20 21:55:32 +0000
3+++ qt/core/browser/oxide_qt_web_view.cc 2015-03-27 17:19:35 +0000
4@@ -273,7 +273,7 @@
5
6 bool WebView::ShouldShowInputPanel() const {
7 if (text_input_type_ != ui::TEXT_INPUT_TYPE_NONE &&
8- show_ime_if_needed_) {
9+ show_ime_if_needed_ && focused_node_is_editable_) {
10 return true;
11 }
12
13@@ -705,6 +705,8 @@
14
15 if (ShouldHideInputPanel() && HasFocus()) {
16 SetInputPanelVisibility(false);
17+ } else if (!has_input_method_state_ && ShouldShowInputPanel()) {
18+ SetInputPanelVisibility(true);
19 } else if (has_input_method_state_ && focused_node_is_editable_) {
20 QGuiApplication::inputMethod()->reset();
21 }

Subscribers

People subscribed via source and target branches