Re: Copy & paste key commands not working correctly - Mailing list pgadmin-support

From Dave Page
Subject Re: Copy & paste key commands not working correctly
Date
Msg-id CA+OCxowitpm0vuFvaAXNjJHBbqstb0JHqF+90PaeLKqHJv8OaQ@mail.gmail.com
Whole thread Raw
In response to Re: Copy & paste key commands not working correctly  (johannes graën <johannes@selfnet.de>)
Responses Re: Copy & paste key commands not working correctly  (johannes graën <johannes@selfnet.de>)
List pgadmin-support


On Tue, Feb 16, 2016 at 8:13 AM, johannes graën <johannes@selfnet.de> wrote:
On Tue, Feb 9, 2016 at 2:55 PM, Gabriel Sánchez
<gabrielesanchez@gmail.com> wrote:
> The same happens to me. Although copying and waiting usually works for me.

I've got a new clue. Although cut + paste inserts the wrong text, the
cutted text is available to other programs afterwards. So my guess
would be that pgadmin just uses the wrong clipboard to insert from.

pgAdmin just registers the shortcut (Ctrl+V) as part of the menu item, therefore they call exactly the same code.

My best guess is that when you use Ctrl+V, some other control on the window actually has focus and is "swallowing" the keypress before our code sees it. Can you confirm that the SQL textbox is definitely the focussed control when you hit Ctrl+V? Does it work properly then?

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgadmin-support by date:

Previous
From: Dave Page
Date:
Subject: Re: Debugger freeze
Next
From: Sanket Mehta
Date:
Subject: Re: DEFAULT PRIVILEGES incorrect