Merge lp:~thomas-moenicke/ubuntu-keyboard/ubuntu-keyboard-commit-predictive-text-on-close into lp:ubuntu-keyboard

Proposed by Thomas Moenicke
Status: Rejected
Rejected by: Bill Filler
Proposed branch: lp:~thomas-moenicke/ubuntu-keyboard/ubuntu-keyboard-commit-predictive-text-on-close
Merge into: lp:ubuntu-keyboard
Diff against target: 62 lines (+8/-1)
4 files modified
qml/Keyboard.qml (+1/-0)
src/lib/logic/eventhandler.cpp (+2/-0)
src/plugin/inputmethod.cpp (+3/-0)
src/view/abstracttexteditor.h (+2/-1)
To merge this branch: bzr merge lp:~thomas-moenicke/ubuntu-keyboard/ubuntu-keyboard-commit-predictive-text-on-close
Reviewer Review Type Date Requested Status
Bill Filler (community) Needs Fixing
PS Jenkins bot continuous-integration Approve
Review via email: mp+199450@code.launchpad.net

Commit message

commit predictive tetx on close

Description of the change

commit predictive tetx on close

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
123. By Thomas Moenicke

commit preedit on focus loss rather than keyboard close

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Bill Filler (bfiller) wrote :

doesn't seem to work tried the following: enabled predictive-text and spell-checking and auto-completion
1) create a new contact in address book
- type Bill in first name field
- tap in last name field
- Word Ribbon still shows suggestions from Bill which it shouldn't - it should be cleared
- now type Filler, but field shows BillFiller

review: Needs Fixing

Unmerged revisions

123. By Thomas Moenicke

commit preedit on focus loss rather than keyboard close

122. By Thomas Moenicke

commit predictive text when closing the keyboard (e.g. when send button is hit)
The predictive text in this case is purple in the input field. Closing the osk without committing
predictive text (which is text that has actually been typed by the user) is confusing.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Keyboard.qml'
2--- qml/Keyboard.qml 2013-11-15 14:19:50 +0000
3+++ qml/Keyboard.qml 2013-12-18 19:02:51 +0000
4@@ -234,6 +234,7 @@
5 keypad.activeKeypadState = "NORMAL";
6 keypad.state = "CHARACTERS";
7 maliit_input_method.hide();
8+ event_handler.onKeyReleased("", "close");
9 }
10 when: maliit_geometry.shown === false
11 }
12
13=== modified file 'src/lib/logic/eventhandler.cpp'
14--- src/lib/logic/eventhandler.cpp 2013-11-07 17:43:22 +0000
15+++ src/lib/logic/eventhandler.cpp 2013-12-18 19:02:51 +0000
16@@ -237,6 +237,8 @@
17 key.setAction(Key::ActionSpace);
18 else if (action == "shift")
19 key.setAction(Key::ActionShift);
20+ else if (action == "close")
21+ key.setAction(Key::ActionClose);
22 else
23 key.setAction(Key::ActionInsert);
24
25
26=== modified file 'src/plugin/inputmethod.cpp'
27--- src/plugin/inputmethod.cpp 2013-11-21 13:26:12 +0000
28+++ src/plugin/inputmethod.cpp 2013-12-18 19:02:51 +0000
29@@ -183,9 +183,12 @@
30
31 void InputMethod::handleFocusChange(bool focusIn)
32 {
33+ Q_D(InputMethod);
34+
35 if (focusIn) {
36 checkInitialAutocaps();
37 } else {
38+ d->editor.commitPreedit();
39 hide();
40 }
41 }
42
43=== modified file 'src/view/abstracttexteditor.h'
44--- src/view/abstracttexteditor.h 2013-11-21 13:26:12 +0000
45+++ src/view/abstracttexteditor.h 2013-12-18 19:02:51 +0000
46@@ -138,6 +138,8 @@
47 Q_SIGNAL void leftLayoutSelected();
48 Q_SIGNAL void rightLayoutSelected();
49
50+ Q_SLOT void commitPreedit();
51+
52 private:
53 const QScopedPointer<AbstractTextEditorPrivate> d_ptr;
54
55@@ -153,7 +155,6 @@
56
57 virtual void singleBackspace();
58
59- void commitPreedit();
60 Q_SLOT void autoRepeatBackspace();
61 void autoRepeatWordBackspace();
62 QString wordLeftOfCursor() const;

Subscribers

People subscribed via source and target branches