Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIxMk-0005na-Gq for pgadmin-hackers@arkaria.postgresql.org; Fri, 01 Jul 2016 12:16:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bIxMj-0005P4-Aq for pgadmin-hackers@arkaria.postgresql.org; Fri, 01 Jul 2016 12:16:13 +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 1bIxMi-0005Ox-Qj for pgadmin-hackers@postgresql.org; Fri, 01 Jul 2016 12:16:12 +0000 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bIxMd-0002GF-Pl for pgadmin-hackers@postgresql.org; Fri, 01 Jul 2016 12:16:11 +0000 Received: by mail-io0-x230.google.com with SMTP id s63so98446515ioi.3 for ; Fri, 01 Jul 2016 05:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KW+pfnAWvW/M7dd0fQt/t0WUWtNxBItH472c4LJkYZU=; b=EBmUTqRfmIC4r8IDCWg4xRZjnh70IrLU5lJ+9iTPmv5YGg+X6YJkbwjCLbmeTlpgrK sN+aHL3KOPkowGK8TuhcZBn+YK0Ln6z45QCfQPajHe5me70lfSrhwzyHR+qlVBMlm5f2 AEKexEZ0OpnPZwlO8mGHpKhsXphCwdDLp6ViLvZWDYq7K/BduvTi73o4apng2HNN0IP8 RbIuwcf9Q3hllkD+f1zC4tM+owo61oCr/w3g4X0cJB0G7f+DOnc9n7lOjyfqv8HQZO7W VnUXvMdRve0XdFGyXR+1hFz9bteTNwky0zu+mbqkyOp4xcbgW5y+Sl7Hws86C2pjZRFs lxAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KW+pfnAWvW/M7dd0fQt/t0WUWtNxBItH472c4LJkYZU=; b=VxNAZmvfrmCMhrXxEPwk7XmqsK7om7HmiIGIldlAT4ErVAtGZwtmR6vgVvKI6/+QAF YZgJ8VAs1z8C+btedtF2lCNarxtRRTcyNo7MTeuZizUUosaxmcz5NKe5IL+EQaOzCPxq fIpG2dwFtDXN0eDxSqzXUg9ME0vxJgOaWQ0lE92R3VKUoKuBLo01yDPsHNlmTcA2bmF3 1bK/6D7KSrXTjl16ikTLR+qSQJb8Ptz/+17rEFMJxevsFStDLDZoYvJ4zVypT+CHtmfI U/Qe4pFRCABRw85XHbPFN7cEC9uYsTceQJ3O7awcdkm8lAeogeo8yjoHoSxl8+HRtugR nYWA== X-Gm-Message-State: ALyK8tJjz1+jc3I8aV0RKT6bdRZ8+oX9iwlztZymbRNKbuDVMeox226XpWrwqD7EfCJ7Pkb0VZrJtzOV/aHJAA== X-Received: by 10.107.3.84 with SMTP id 81mr19814329iod.156.1467375365711; Fri, 01 Jul 2016 05:16:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.24.233 with HTTP; Fri, 1 Jul 2016 05:16:04 -0700 (PDT) In-Reply-To: References: <5767F4E1.6020308@kingston.net> From: Dave Page Date: Fri, 1 Jul 2016 13:16:04 +0100 Message-ID: Subject: Re: Fix for issue RM1336 [pgadmin4] To: Harshal Dhumal Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 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 Hi On Fri, Jul 1, 2016 at 11:10 AM, Harshal Dhumal wrote: > Hi, > > PFA patch > > This contains: > 1] All shortcuts' list which we are using in pgAdmin4. > 2] Fixed shortcut display tooltips. > > > -- > Harshal Dhumal > Software Engineer > > EnterpriseDB India: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > > On Thu, Jun 30, 2016 at 2:34 PM, Dave Page wrote: >> >> Hi Harshal, >> >> On Thu, Jun 30, 2016 at 7:59 AM, Harshal Dhumal >> wrote: >> > Hi Dave, >> > >> > Somehow control key is mapped to Command key in Mac. So on Mac shortcuts >> > are >> > Shift+Command+E, Shift+Command+X, Shift+Command+A >> >> OK, those work, but I think we need to take a step back here (partly >> because Cmd+Shift+A seems to be Select All in CodeMirror on Mac). I've >> committed the patch now, but changed Ctrl+Shift+A to Ctrl+Shift+N. >> >> Can you please work on the following: >> >> 1) Create a table of shortcuts from our runtime, our web app, and >> CodeMirror. This should list: >> >> Component (e.g. runtime, CodeMirror, Query Tool) >> Standard shortcut (e.g. Ctrl+Shift+A) >> Mac shortcut (e.g. Cmd+Shift+A) >> Function (e.g. Explain Analyze or Select All) >> >> Let's make this as complete and accurate as possible, so it can be >> included in the documentation, and used by us to select or >> de-duplicate shortcuts. > > Added shortcuts' list. Let's keep it as a separate file for now, and not part of the source tree or any patches. I notice that it's missing much of what I wanted to collect though, e.g. Ctrl+Space - Autocomplete(?) Cut Copy Paste Select All ... The other CodeMirror keys can be found at https://codemirror.net/doc/manual.html#keymaps. Please add at least the basic editting commands. >> 2) Confirm that the shortcuts we're using in our runtime and web >> application don't conflict with any in CodeMirror (or web browsers, in >> the case of the web app). > > Tested. No other conflicting shortcuts found. Good. >> >> 3) Update the web application so the shortcuts are correctly displayed >> on Mac automatically - e.g. the tooltips and menus should show >> Cmd+Shift not Ctrl+Shift > > Fixed > >> >> >> 4) Investigate #1360, and ensure that the CodeMirror shortcuts work >> consistently between the runtime and browsers on all platforms. > > Investigating now. You've already found one inconsistency - Cmd vs. Ctrl on Mac browsers vs. the runtime. It should be Cmd in either UI, to avoid user confusion. >> >> 5) Investigate any remaining shortcuts that don't work as expected. > > > Investigating now.: Codemirror shortcut (Cmd/Ctrl+Shift+A) "Select all" > only works on Mac (web/runtime) not on linux platform (haven't tested on > windows) Yeah - see also some of the comments I made on https://redmine.postgresql.org/issues/1360 Let's figure out what's wrong first, then come up with a set of fixes/changes that will get us to a consistent set of keys that work as per the list you're preparing. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers