Pressing delete when editing database name can drop the database on Mac OS X

From: Charles Gutjahr <charlesg(at)ourcommunity(dot)com(dot)au>
To: "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org>
Subject: Pressing delete when editing database name can drop the database on Mac OS X
Date: 2012-10-22 05:36:23
Message-ID: CCAB2687.28820%charlesg@ourcommunity.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support


There is some weird behaviour in the Mac OS X version of pgAdmin that looks like a bug to me.

When I edit the properties of an object, say edit the name of a database, pressing the delete key attempts to drop the database. Pressing backspace works fine, it deletes a single character in the name I'm editing. Pressing delete should delete the next character, but instead it triggers the drop database dialogue. It looks the delete key is being passed back to the main window instead of the text field I'm editing.

I've tested the Windows and Mac OS X versions of pgAdmin, and it only occurs in the OS X version. In OS X pgAdmin 1.10.5 a "Drop database?" dialogue is shown when pressing delete, and in pgAdmin 1.16.0 a "Cannot drop object" dialogue is shown. The Windows pgAdmin 1.16.0 does not popup a dialogue when pressing delete.

By the way, Mac keyboards can be a little confusing. There are two buttons labelled 'delete' on a full-size Mac keyboard. The traditional backspace key is labelled 'delete', whereas the traditional delete key is labelled 'delete ⌦'. It is the second one which triggers the drop.

I take it that this isn't intended behaviour?

Cheers
Charles

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2012-10-23 09:41:47 Re: Pressing delete when editing database name can drop the database on Mac OS X
Previous Message Pieter du Plooy 2012-10-20 22:40:24 Kubuntu Error pgAdmin 1.14.3 and 1.16.0