~michael-sheldon/ubuntu-keyboard/fix-1332624

« back to all changes in this revision

Viewing changes to qml/WordRibbon.qml

  • Committer: CI bot
  • Author(s): Michael Sheldon
  • Date: 2014-05-27 15:37:31 UTC
  • mfrom: (165.1.9 suggestion-override)
  • Revision ID: ps-jenkins@lists.canonical.com-20140527153731-xnf1htflimoqalsp
Add user input to the word ribbon as the first entry, allowing for autocomplete suggestions to be overridden. Use the selection of that entry as the cue to add words to the user spell check dictionary and filter presage's predictions based on what words are in the spell check dictionary. Fixes: 1318808

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
                    font.pixelSize: units.gu(2);
58
58
                    font.family: "Ubuntu Medium"
59
59
                    color: "#999999"
60
 
                    font.bold: false
 
60
                    font.bold: isUserInput
61
61
                    text: word;
62
62
                }
63
63
            }
66
66
                anchors.fill: wordCandidateItem
67
67
                onPressed: {
68
68
                    wordRibbonCanvas.state = "SELECTED"
69
 
                    event_handler.onWordCandidatePressed(wordItem.text);
 
69
                    event_handler.onWordCandidatePressed(wordItem.text, isUserInput)
70
70
                }
71
71
                onReleased: {
72
72
                    wordRibbonCanvas.state = "NORMAL"
73
 
                    event_handler.onWordCandidateReleased(wordItem.text)
 
73
                    event_handler.onWordCandidateReleased(wordItem.text, isUserInput)
74
74
                }
75
75
            }
76
76
        }