Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWiUc-00066O-F4 for pgadmin-hackers@arkaria.postgresql.org; Mon, 08 Aug 2016 11:13: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 1bWiUb-0001nG-GI for pgadmin-hackers@arkaria.postgresql.org; Mon, 08 Aug 2016 11:13: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 1bWiUb-0001n9-3I for pgadmin-hackers@postgresql.org; Mon, 08 Aug 2016 11:13:13 +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 1bWiUY-0007jA-9N for pgadmin-hackers@postgresql.org; Mon, 08 Aug 2016 11:13:12 +0000 Received: by mail-io0-x230.google.com with SMTP id q83so354899956iod.1 for ; Mon, 08 Aug 2016 04:13:09 -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=e5wXLPiTwfnnAlsYAq3+kiA1yptLxjRU2hbexbX/BY4=; b=dgdBQe//FgD125ge1uQ8PANgFk7HwmrrZgf3AnGF6HjzoSPSJ2irSdiHjoWb5aiOlG ZQ6Ky7FvVywgSxtUBxmRditvTE09OcZBDPCxBkrJoe7Ca/v7zTDPYz5H/gKjsB641yiR uzXdjpNJFskmfr8A5e8AhQJG7XOQf9fjGvJI6ZKOHtsvpq75iFzhqd0oKR3d6md0CLCx OwiyqI2kAtzn8zxjQaRRd290aisoN/+vkQXJAf7e1gKvFlqQq9d7/nzmAmeq696LQCpa KsVhyu0yTm9nfh0+ugZ8yS8RDM8HoyZaq07wPQ8gWwodd9GKPG5rsnqP8d+5dopKX6I+ IG3A== 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=e5wXLPiTwfnnAlsYAq3+kiA1yptLxjRU2hbexbX/BY4=; b=HRiaDGfXUh5XR5vjYFbsvo0cYMNZLQ5Vphl7XyJVLbktI9V5tyRUkva7Qh3aB9wPNd a8JzBaq3ARrlNJL0SD/R5nLsZMEbNDZlc7Po1lfAa2TTk6ZK7okWvQmB5h4onRDzJRPn pM/AlHhjChHduBKnDtjwmhhYpT7zgq6CB6Xi+MsyRcetOgg5i+PNsCiWgyanbigHNGsI IR8tZ/FSo7Fre5WOc72P6lnXcB+Z2qKaiX5nwOrg21Ldn8oUO73H86NLlV4gXzclemH3 9neMvJOjIYyYBVlvGXAUjRPdoqFfsIF9LT8TrA1zYziKZ4Sl2IxZkej2tXccYZNOLHWx AggA== X-Gm-Message-State: AEkoouuikajdwnVHUFhVfjIT0SwJPhPMT1jBQ2C5AWvHDNvPWmwLPLqJV8o97+UF/Le7dOrmZ/uq2Eapaz29vw== X-Received: by 10.107.183.85 with SMTP id h82mr95763764iof.63.1470654788174; Mon, 08 Aug 2016 04:13:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Mon, 8 Aug 2016 04:13:07 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Mon, 8 Aug 2016 12:13:07 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch]: RM#1478 - Make code mirror text editor keyboard shortcuts consistent irrespective of platform type To: Surinder Kumar 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 Surinder, This looks very promising, but it only covers the query tool at present. We need the shortcuts to apply to all codemirror instances. Do the others work anyway, because we're invoking in a different way, or is more work needed there? On Fri, Aug 5, 2016 at 6:42 PM, Surinder Kumar wrote: > Hi > > I found that Code-mirror library itself provides the List of keyboard > shortcuts for Mac OSX and other platform type. > We just need to pass them in extraKeys param while creating code-mirror > instance. > > Following is the keyboard shortcuts for various operations in text editor: > > Copy - [Ctrl-C, Cmd-C] > Cut - [Ctrl-X, Cmd-X] > Select All - [Ctrl-A, Cmd-A] > Undo - [Ctrl-Z, Cmd-Z] > Redo - [Ctrl-Y, Cmd-Y] > Delete Line - [Ctrl-D, Cmd-D] > Move left/right(words) - [Alt-Left, Alt-Right] > Move start/end of line - [Cmd-Left, Cmd-Right] // Ctrl-Left/Right are bound > to System shortcuts. so these keys cannot be used. > > These keyboard shortcuts are consistent in Web/Runtime applications in all > platform types. > > Issue not fixed: > keyboard shortcut for Paste text doesn't work in Mac Runtime only. It is > working on Linux runtime & Windows Runtime. > An issue "Key shortcuts doesn't work on Mac OS for QWebView widget" is also > reported. > > I also found that right click paste is working in Mac Runtime which is the > feature of code-mirror, So I am looking into its code to figure out and I > will send a patch with fix once it gets fixed. > > Please find attached patch and review. > > > Thanks, > Surinder Kumar > > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > -- 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