~kissiel/checkbox/converged-keyboard-support

« back to all changes in this revision

Viewing changes to checkbox-touch/checkbox-touch.qml

  • Committer: Maciej Kisielewski
  • Date: 2016-07-11 12:39:35 UTC
  • Revision ID: maciej.kisielewski@canonical.com-20160711123935-afqbi52qvrfgn7y8
checkbox-touch: use KeysDelegator for handling keyboard events

Signed-off-by: Maciej Kisielewski <maciej.kisielewski@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
        }
88
88
    }
89
89
 
 
90
    KeysDelegator {
 
91
        id: rootKeysDelegator
 
92
    }
 
93
 
 
94
    // forward all keypresses to the delegator
 
95
    Keys.onPressed: rootKeysDelegator.keyPress(event)
 
96
 
90
97
    Component.onCompleted: {
91
98
        i18n.domain = "com.ubuntu.checkbox";
92
99
        if (args.values["autopilot"]) {