~mterry/ubuntu-calculator-app/confined

« back to all changes in this revision

Viewing changes to app/ubuntu-calculator-app.qml

  • Committer: Tarmac
  • Author(s): Niklas Wenzel
  • Date: 2015-12-09 22:38:25 UTC
  • mfrom: (248.2.1 bracket-paste-fix)
  • Revision ID: tarmac-20151209223825-q77gjpch54ckv4vb
Fix pasting brackets. Fixes: https://bugs.launchpad.net/bugs/1516321.

Approved by Bartosz Kosiorek, Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
648
648
                                                            acceptedBits.push({ "chars": item.pushText, "push": item.pushText });
649
649
                                                        if (item.text)
650
650
                                                            acceptedBits.push({ "chars": item.text, "push": item.pushText ? item.pushText : item.text });
 
651
                                                        if (item.pasteTexts)
 
652
                                                            for (var pos = 0; pos < item.pasteTexts.length; pos++)
 
653
                                                                acceptedBits.push({ "chars": item.pasteTexts[pos], "push": item.pasteTexts[pos] });
651
654
                                                    }
652
655
                                                }
653
656
                                            }