public inbox for [email protected]  
help / color / mirror / Atom feed
From: Nagesh Dhope <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM3972] Standard OSX keyboard behaviour in Query Tool.
Date: Fri, 10 Apr 2020 11:23:54 +0530
Message-ID: <CAA3zdZpVmyBTJBh1zdnorc_8h_VVaZ4muSK4_J62x5u8qJrQVQ@mail.gmail.com> (raw)

Hi Hackers,
Please find a patch, which fixes following OSX native keyboard shortcuts in
Query Tool.

   1. option+arrow (L/R) should skip by "word"
   2. option+arrow (up/down) should go up/down one line
   3. shift+option+arrow (L/R) should select/highlight by "word"

-- 
Thanks,
Nagesh


Attachments:

  [application/octet-stream] RM3972.patch (577B, 3-RM3972.patch)
  download | inline diff:
diff --git a/web/pgadmin/browser/static/js/browser.js b/web/pgadmin/browser/static/js/browser.js
index e8ac4af..695052d 100644
--- a/web/pgadmin/browser/static/js/browser.js
+++ b/web/pgadmin/browser/static/js/browser.js
@@ -2117,9 +2117,8 @@ define('pgadmin.browser', [
       'Ctrl-D': 'deleteLine',
       'Cmd-D': 'deleteLine',
 
-      // Go to start/end of Line
-      'Alt-Left': 'goLineStart',
-      'Alt-Right': 'goLineEnd',
+      'Alt-Up': 'goLineUp',
+      'Alt-Down': 'goLineDown',
 
       // Move word by word left/right
       'Ctrl-Alt-Left': 'goGroupLeft',


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin][RM3972] Standard OSX keyboard behaviour in Query Tool.
  In-Reply-To: <CAA3zdZpVmyBTJBh1zdnorc_8h_VVaZ4muSK4_J62x5u8qJrQVQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox