Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNIbo-0000PQ-FD for pgadmin-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 11:45:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bNIbn-0005oN-Ts for pgadmin-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 11:45:43 +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 1bNIba-0005Zu-FF for pgadmin-hackers@postgresql.org; Wed, 13 Jul 2016 11:45:30 +0000 Received: from mail-io0-x236.google.com ([2607:f8b0:4001:c06::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bNIbW-0005uh-On for pgadmin-hackers@postgresql.org; Wed, 13 Jul 2016 11:45:29 +0000 Received: by mail-io0-x236.google.com with SMTP id m101so43425206ioi.2 for ; Wed, 13 Jul 2016 04:45:26 -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=n9zk4FRXsv5vFTKB/SxZlS8gAPYKoLvAs6+ivkjJd+0=; b=hcw40ZVXfAQjtkBS0oT73rkQTQ1oGSSv74hv/NfE+/NeckHJCPDxlPl8VioOMhAMlx v9wCVuMyf9ckXOOxBmq0D2HZGZju2es0fhLUgLXubKErsjzse0dpUuW14hNTt6EFF6v4 KCwQUTJlLl6jRmDkdNIVge9xONNUHugXo8HbfQLDCvxItCxswuhidgKe/+3+VoDJTr4C G4UDhQu6RdFiZkwpHA9a/B1JqbGLfSEYBnjAEdl73VsZuNOoCBKtEoKRoTuh3AXHaWZJ aYdcspvFmFCU302UxoeU4YnMSqDA2THV+uSmrJFPCTGCs0VSPgP2klCFewWN9DrjTZVH CTCw== 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=n9zk4FRXsv5vFTKB/SxZlS8gAPYKoLvAs6+ivkjJd+0=; b=luvY1unf/+fHSOoYE0Id8gc9ASUly3aIpK1IVWyfxHkiVhNS7fPTMkVOdqK0EGIyTX XgTfqzmJuYr72QYm5TpKz/hStcAHMYQkmpsXkd8OdeqgwzwKrpdaApdyi4i3noTXB0kV Z6lZ9AInww4kKsxETDtRLEcb9TT41ueU6b/xEbpugD2rg/FWlklH2f7LsM5AW+Qt7Djz Ebskb3vodSknJf++IOs6sxbX56CiBRu+hu/GSiK4jxl45eahftMr0+1Xb08TwrmpZ2N0 KG+vDFLp5uKPI4xSFJvmHXK4fk+N8bbp0CGp2ytGIaGpL0dDVgQauPzUN03Ibe150QiE AYaQ== X-Gm-Message-State: ALyK8tL22D25ixolVWBdrLI63Qc/8ZD+eBwziFTWheNWVqx/f7QDhsCw26FDZaLKQIAQ6UI98Pc/4c4LuLvPgA== X-Received: by 10.107.183.85 with SMTP id h82mr8500921iof.63.1468410325129; Wed, 13 Jul 2016 04:45:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Wed, 13 Jul 2016 04:45:24 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Wed, 13 Jul 2016 12:45:24 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch]: RM#1432 - File Browser - File does not exist error To: Surinder Kumar Cc: Marc Linster , 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 On Tue, Jul 12, 2016 at 7:10 AM, Surinder Kumar wrote: > On Mon, Jul 11, 2016 at 6:41 PM, Dave Page wrote: >> >> On Thu, Jul 7, 2016 at 1:50 PM, Surinder Kumar >> wrote: >> > On Wed, Jul 6, 2016 at 7:02 PM, Surinder Kumar >> > wrote: >> >> >> >> On Wed, Jul 6, 2016 at 5:40 PM, Dave Page wrote: >> >>> >> >>> Hi, >> >>> >> >>> I think we need more changes than just that; >> >>> >> >>> - The path at the top should not be editable (it should be greyed in >> >>> fact) >> >> >> >> Ok >> >>> >> >>> >> >>> - The path at the top should only show the directory path. The >> >>> filename should never be appended. >> >> >> >> Ok >> >>> >> >>> >> >>> - The CSS needs to be fixed so the filename textbox at the bottom is >> >>> never hidden (as it is now if the dialogue opens at a small size). >> >> >> >> Ok >> >>> >> >>> >> >>> - Double-click to navigate vs. rename should be modified to work in >> >>> part like it does on Mac - Double-click on either the icon or the name >> >>> should open the item (browser into a folder, or select and "OK" on a >> >>> file), and Click then Enter should rename. I'm hesitant to try to >> >>> implement "slow double click to rename" as that would likely need to >> >>> be tunable for accessibility reasons. >> >> >> >> Ok, I will fix it. >> > >> > In the current scenario, the Enter Key is bound to the OK button by >> > default >> > in Alertify dialog which servers the purpose of closing the dialog. >> > Should we de-attach Enter Key event bound to OK button and use it for >> > rename >> > file? >> > please suggest what should I do? >> >> Hmm, good point. >> >> How hard would it be to look for 2 consecutive single-clicks (but not >> a double-click) for rename? If we can do that, it avoids timing >> considerations for double-clicks (which would be defined by the OS). > > > I tried to implement slow double click, here is Fiddle > There are two events 1) double click (it will be used for folder navigation) > 2) Slow double click(For rename), It is a simple click event, when clicked > twice after delay we consider it a slow double click. > > But it is not working smoothly, double click and single click events are > conflicting. Yeah, so I see. > Also, we have rename button in navigation for rename operation, > Can we skip slow double click because it is very confusing? OK, I must have been having a brain failure moment or something. Yes, skip it - we obviously don't need it with the rename button. So we have: - Click to select - Double click to open a folder - Button to rename the select file/folder Sorry! -- 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