Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bk5U8-0004IX-Qm for pgadmin-hackers@arkaria.postgresql.org; Wed, 14 Sep 2016 08:24:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bk5U8-0005xd-A1 for pgadmin-hackers@arkaria.postgresql.org; Wed, 14 Sep 2016 08:24:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bk5Tv-0005jY-7a for pgadmin-hackers@postgresql.org; Wed, 14 Sep 2016 08:23:47 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bk5Ts-0007eJ-Ty for pgadmin-hackers@postgresql.org; Wed, 14 Sep 2016 08:23:46 +0000 Received: by mail-wm0-x230.google.com with SMTP id b187so34164840wme.1 for ; Wed, 14 Sep 2016 01:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=OLbk3ZRELk3l+rSyS0u4YdfJo3qNh5AZajOWfMugVjw=; b=ZhddkyhQrwg0Q6gBNdxc/elJnRHFvUXeQ+K6TPe7uF5PZpywWecbpOybqMpMOHfGxG cytx1OwTYbb+KAXYuv3fnClX5pZYf90RZSaQzYOTYjHHm5Rh5FDPQb9jegglgw19g3kl KuoMtil9yJDuNJ0gMAYndZbeeEZxsnMVTxAA26N7rPc0PjZ+PdXlwRex1LDyKzqjEO1Q gtz5ePOLMI+S/yRAM6WCREUxu4mScDAiBkVWjh2zoCpBUogpCe0RZtFRRPpFT2SBvM3n e+W40KH5s/JJGz6YVmvPWJSxZbOk7SWjOfSrN57tFfaCtL/HDsaUZSJOkieTKZ4O+Hdh EFEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OLbk3ZRELk3l+rSyS0u4YdfJo3qNh5AZajOWfMugVjw=; b=RPQCBJYa04zTVjCBV7Z/k9vOXYdfpJNMnOADIq9ogYBUdK1Ak4IsKC3x8fVtoJ5vwC NUd4qMyr3ZhRd/AeVgmW0pKSafxhG9uByYe6Cr56SeUyKj8aSsLYIxZeOfO3EIgDzQ3s jejHuikGb9WIrwPqhpokHyw4s5SqolBpogKsIvJNyDs5AdoBY+SdiH8K98Fc0rWWEyGF h7MXfu/AnmLpSP+szHf/JimEkqrSi8jNl/w0hcEDW98vEVOV1lcVdPYUnOyJS9xT8dRA akMH4A0UvAAstCBt0HQ4qAG6s9xkeXRIDyBH40GJbYyJB4URLr1FCX+YNmq7KaqqF6L7 FGJg== X-Gm-Message-State: AE9vXwMY8ojCSlwAPLBPBSsJpD5DYUGFYh9dHNqOgG5ZClE5Ytnz7cazhhzjJhLpo4HAQ7unze/wx190ToKLDlgd X-Received: by 10.194.149.238 with SMTP id ud14mr1465759wjb.194.1473841423831; Wed, 14 Sep 2016 01:23:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.172.198 with HTTP; Wed, 14 Sep 2016 01:23:13 -0700 (PDT) From: Surinder Kumar Date: Wed, 14 Sep 2016 13:53:13 +0530 Message-ID: Subject: [pgAdmin4][Patch]: RM1478 - Paste event is not working in Query tool To: pgadmin-hackers Content-Type: multipart/mixed; boundary=089e01228b94864a1e053c73725a X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --089e01228b94864a1e053c73725a Content-Type: multipart/alternative; boundary=089e01228b94864a1a053c737258 --089e01228b94864a1a053c737258 Content-Type: text/plain; charset=UTF-8 Hi *Issue:* On debugging deeply into the code mirror JS library, I found that* Ctrl-V event *is mapped for *"goPageDown" *which is the reason paste not working in Mac Runtime. I have removed this mapping temporary from Code-mirror key map object once code mirror JS library is loaded. In Mac Runtime, Paste event will work on *Cmd-V.* Please find attached patch and review. Thanks, Surinder Kumar --089e01228b94864a1a053c737258 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi<= /div>

Issue:
On debugging deeply= into the code mirror JS library, I found that Ctrl-V event is mappe= d for "goPageDown" which is the reason paste not working i= n Mac Runtime.
=
I have rem= oved this mapping temporary from Code-mirror key map object once code mirro= r JS library is loaded.

I= n Mac Runtime, Paste event will work on Cmd-V.

Please find attached patch and review.<= /div>


Thanks,
Surinder Kumar
--089e01228b94864a1a053c737258-- --089e01228b94864a1e053c73725a Content-Type: application/octet-stream; name="RM1478.patch" Content-Disposition: attachment; filename="RM1478.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_it2n2i0j0 ZGlmZiAtLWdpdCBhL3dlYi9wZ2FkbWluL2Jyb3dzZXIvdGVtcGxhdGVzL2Jy b3dzZXIvanMvYnJvd3Nlci5qcyBiL3dlYi9wZ2FkbWluL2Jyb3dzZXIvdGVt cGxhdGVzL2Jyb3dzZXIvanMvYnJvd3Nlci5qcwppbmRleCA3YTIwMmU4Li5m N2UyMjZlIDEwMDY0NAotLS0gYS93ZWIvcGdhZG1pbi9icm93c2VyL3RlbXBs YXRlcy9icm93c2VyL2pzL2Jyb3dzZXIuanMKKysrIGIvd2ViL3BnYWRtaW4v YnJvd3Nlci90ZW1wbGF0ZXMvYnJvd3Nlci9qcy9icm93c2VyLmpzCkBAIC0x NjAwLDYgKzE2MDAsMTMgQEAgZnVuY3Rpb24ocmVxdWlyZSwgJCwgXywgUywg Qm9vdHN0cmFwLCBwZ0FkbWluLCBBbGVydGlmeSwgQ29kZU1pcnJvcikgewoK ICAgfSk7CgorICAvKiBSZW1vdmUgcGFzdGUgZXZlbnQgbWFwcGluZyBmcm9t IENvZGVNaXJyb3IncyBlbWFjc3kgS2V5TWFwIGJpbmRpbmcKKyAgICogc3Bl Y2lmaWMgdG8gTWFjIExpbmVOdW1iZXI6NTc5NyAtIGxpYi9Db2RlbWlycm9y LmpzCisgICAqIEl0IGlzIHByZXZlbnRpbmcgZGVmYXVsdCBwYXN0ZSBldmVu dChDbWQtVikgZnJvbSB0cmlnZ2VyaW5nCisgICAqIGluIHJ1bnRpbWUuCisg ICAqLworICBkZWxldGUgQ29kZU1pcnJvci5rZXlNYXAuZW1hY3N5WyJDdHJs LVYiXTsKKwogICAvLyBVc2Ugc3BhY2VzIGluc3RlYWQgb2YgdGFiCiAgIGlm ICgne3sgZWRpdG9yX3VzZV9zcGFjZXMgfX0nID09ICdUcnVlJykgewogICAg IHBnQWRtaW4uQnJvd3Nlci5lZGl0b3Jfc2hvcnRjdXRfa2V5cy5UYWIgPSAi aW5zZXJ0U29mdFRhYiI7Cg== --089e01228b94864a1e053c73725a Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers --089e01228b94864a1e053c73725a--