Thread: PATCH: Enable backwards search in SQL Box
Hello! Pressing F3 in query editor makes the previously started search continue forwards. This patch adds expected behavior for Shift-F3. There is a minor inconvenience when just changing the search direction - you have to press (Shift-)F3 *twice* for the (previous)next occurence to get highlighted. That's because first time goes for cursor movement to the corresponding boundary of current occurence. But that also happens when search direction is changed with dialog radio-buttons, so I think it's ok. -- Best regards, J.F.
Attachment
Ashesh, can you look at, and if appropriate, commit this please? Thanks. On Mon, Feb 17, 2014 at 5:46 PM, J.F. Oster <jinfroster@mail.ru> wrote: > Hello! > > Pressing F3 in query editor makes the previously started search > continue forwards. > This patch adds expected behavior for Shift-F3. > > There is a minor inconvenience when just changing the search direction > - you have to press (Shift-)F3 *twice* for the (previous)next occurence > to get highlighted. That's because first time goes for cursor movement > to the corresponding boundary of current occurence. But that also > happens when search direction is changed with dialog radio-buttons, so > I think it's ok. > > -- > Best regards, > J.F. > > -- > 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
Sure.
I will do that.
I will do that.
On Thu, Feb 20, 2014 at 4:52 PM, Dave Page <dpage@pgadmin.org> wrote:
Ashesh, can you look at, and if appropriate, commit this please?
Thanks.> --
On Mon, Feb 17, 2014 at 5:46 PM, J.F. Oster <jinfroster@mail.ru> wrote:
> Hello!
>
> Pressing F3 in query editor makes the previously started search
> continue forwards.
> This patch adds expected behavior for Shift-F3.
>
> There is a minor inconvenience when just changing the search direction
> - you have to press (Shift-)F3 *twice* for the (previous)next occurence
> to get highlighted. That's because first time goes for cursor movement
> to the corresponding boundary of current occurence. But that also
> happens when search direction is changed with dialog radio-buttons, so
> I think it's ok.
>
> --
> Best regards,
> J.F.
>
> 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
--
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company

Hi Dave
Ashesh asked me to review the patch. I have reviewed the patch and tested it. Found one behavior which gets change after applying the patch.
Behavior Before:- When search direction is forward and user press F3, it searches the string in forward direction. Similarly if search direction is backward and user press F3, it searches the string in the backward direction. Nothing will be happen when user press Shift-F3.
Behavior After :- When user press F3, it searches the string in forward direction while on pressing Shift-F3, it searches the string in backward direction. It is not dependent on the search direction selected from the dialog. Also the selection of radio button is dependent on the key press, if F3 is pressed then forward button is selected and if Shift-F3 is pressed then backward is selected.
Is this behavior acceptable?
On Thu, Feb 20, 2014 at 5:09 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:
Sure.
I will do that.--On Thu, Feb 20, 2014 at 4:52 PM, Dave Page <dpage@pgadmin.org> wrote:Ashesh, can you look at, and if appropriate, commit this please?
Thanks.> --
On Mon, Feb 17, 2014 at 5:46 PM, J.F. Oster <jinfroster@mail.ru> wrote:
> Hello!
>
> Pressing F3 in query editor makes the previously started search
> continue forwards.
> This patch adds expected behavior for Shift-F3.
>
> There is a minor inconvenience when just changing the search direction
> - you have to press (Shift-)F3 *twice* for the (previous)next occurence
> to get highlighted. That's because first time goes for cursor movement
> to the corresponding boundary of current occurence. But that also
> happens when search direction is changed with dialog radio-buttons, so
> I think it's ok.
>
> --
> Best regards,
> J.F.
>
> 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
--Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
Akshay Joshi
Principal Software Engineer

Phone: +91 20-3058-9517
Mobile: +91 976-788-8246
Mobile: +91 976-788-8246
On Tue, Feb 25, 2014 at 9:38 AM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
Hi DaveAshesh asked me to review the patch. I have reviewed the patch and tested it. Found one behavior which gets change after applying the patch.Behavior Before:- When search direction is forward and user press F3, it searches the string in forward direction. Similarly if search direction is backward and user press F3, it searches the string in the backward direction. Nothing will be happen when user press Shift-F3.Behavior After :- When user press F3, it searches the string in forward direction while on pressing Shift-F3, it searches the string in backward direction. It is not dependent on the search direction selected from the dialog. Also the selection of radio button is dependent on the key press, if F3 is pressed then forward button is selected and if Shift-F3 is pressed then backward is selected.Is this behavior acceptable?
No, I don't think so (if I'm understanding correctly). I believe what should happen is that:
- F3 should honour the search direction on the radio buttons, in all cases. If the Forward button is selected, F3 searches forward, and if the Backwards button is selected, F3 searches backwards.
- Shift-F3 should always do the opposite of what the radio buttons are set to. So, by default with the Forward radio button selected, Shift-F3 will search backwards, whilst if the Backwards radio button is selected, Shift-F3 should search forwards.
The reason for this is that the radio buttons give the most obvious visual cue, so F3 (Find Next) should follow what they are set to.
--On Thu, Feb 20, 2014 at 5:09 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:Sure.
I will do that.--On Thu, Feb 20, 2014 at 4:52 PM, Dave Page <dpage@pgadmin.org> wrote:Ashesh, can you look at, and if appropriate, commit this please?
Thanks.> --
On Mon, Feb 17, 2014 at 5:46 PM, J.F. Oster <jinfroster@mail.ru> wrote:
> Hello!
>
> Pressing F3 in query editor makes the previously started search
> continue forwards.
> This patch adds expected behavior for Shift-F3.
>
> There is a minor inconvenience when just changing the search direction
> - you have to press (Shift-)F3 *twice* for the (previous)next occurence
> to get highlighted. That's because first time goes for cursor movement
> to the corresponding boundary of current occurence. But that also
> happens when search direction is changed with dialog radio-buttons, so
> I think it's ok.
>
> --
> Best regards,
> J.F.
>
> 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
--Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Hello Dave, Wednesday, February 26, 2014, 12:56:51 AM, you wrote: DP> Shift-F3 should always do the opposite of what the radio DP> buttons are set to. So, by default with the Forward radio button DP> selected, Shift-F3 will search backwards, whilst if the Backwards DP> radio button is selected, Shift-F3 should search forwards. You are right. For example, SciTE does the same. According to the above implemented it in a simplier way. Please see the patch. By the way, I was puzzled why search dialog's settings are saved sometimes and sometimes are not. Depending on dialog's close method: 1. Pressing ESC or "Close" form button calls OnCancel() which does not save; 2. Pressing title [x] button or Alt-F4 (or similar OS hotkey) calls OnClose() which does save. Shouldn't the behaviour be the same regardless of dialog's close method? Or at least the difference should be noted in documentation. Wednesday, February 26, 2014, 12:56:51 AM, you wrote: DP> On Tue, Feb 25, 2014 at 9:38 AM, Akshay Joshi DP> <akshay.joshi@enterprisedb.com> wrote: DP> Hi Dave═ DP> Ashesh asked me to review the patch. I have reviewed the DP> patch and tested it. Found one behavior which gets change after DP> applying the patch. DP> Behavior Before:- When search direction is forward and user DP> press F3, it searches the string in forward direction. Similarly DP> if search direction is backward and user press F3, it searches the DP> string in the backward direction. Nothing will be happen when user DP> press═Shift-F3.═ DP> Behavior After :- ═When user press F3, it searches the string DP> in forward direction while on pressing Shift-F3, it searches the DP> string in backward direction. It is not dependent on the search DP> direction selected from the dialog. Also the selection of radio DP> button is dependent on the key press, if F3 is pressed then DP> forward button is selected and if Shift-F3 is pressed then DP> backward is selected.═ DP> Is this behavior acceptable?═ DP> No, I don't think so (if I'm understanding correctly). I DP> believe what should happen is that: DP> - F3 should honour the search direction on the radio buttons, DP> in all cases. If the Forward button is selected, F3 searches DP> forward, and if the Backwards button is selected, F3 searches DP> backwards. DP> - Shift-F3 should always do the opposite of what the radio DP> buttons are set to. So, by default with the Forward radio button DP> selected, Shift-F3 will search backwards, whilst if the Backwards DP> radio button is selected, Shift-F3 should search forwards. DP> The reason for this is that the radio buttons give the most DP> obvious visual cue, so F3 (Find Next) should follow what they are DP> set to. DP> ═ DP> On Thu, Feb 20, 2014 at 5:09 PM, Ashesh Vashi DP> <ashesh.vashi@enterprisedb.com> wrote: DP> Sure. DP> I will do that. DP> On Thu, Feb 20, 2014 at 4:52 PM, Dave Page <dpage@pgadmin.org> wrote: DP> Ashesh, can you look at, and if appropriate, commit this please? DP> Thanks. DP> On Mon, Feb 17, 2014 at 5:46 PM, J.F. Oster <jinfroster@mail.ru> wrote: >> Hello! >> >> Pressing F3 in query editor makes the previously started search >> continue forwards. >> This patch adds expected behavior for Shift-F3. >> >> There is a minor inconvenience when just changing the search direction >> - you have to press (Shift-)F3 *twice* for the (previous)next occurence >> to get highlighted. That's because first time goes for cursor movement >> to the corresponding boundary of current occurence. But that also >> happens when search direction is changed with dialog radio-buttons, so >> I think it's ok. >> -- Best regards, J.F.
Attachment
On Sat, Mar 8, 2014 at 5:15 PM, J.F. Oster <jinfroster@mail.ru> wrote: > Hello Dave, > > Wednesday, February 26, 2014, 12:56:51 AM, you wrote: > > DP> Shift-F3 should always do the opposite of what the radio > DP> buttons are set to. So, by default with the Forward radio button > DP> selected, Shift-F3 will search backwards, whilst if the Backwards > DP> radio button is selected, Shift-F3 should search forwards. > > You are right. For example, SciTE does the same. > > According to the above implemented it in a simplier way. > Please see the patch. Thanks. Akshay, can you take another look please? > By the way, I was puzzled why search dialog's settings are saved > sometimes and sometimes are not. Depending on dialog's close method: > 1. Pressing ESC or "Close" form button calls OnCancel() which does not > save; > 2. Pressing title [x] button or Alt-F4 (or similar OS hotkey) calls > OnClose() which does save. > > Shouldn't the behaviour be the same regardless of dialog's close > method? Or at least the difference should be noted in documentation. Yes, it should. Patches welcome :-) > Wednesday, February 26, 2014, 12:56:51 AM, you wrote: > > DP> On Tue, Feb 25, 2014 at 9:38 AM, Akshay Joshi > DP> <akshay.joshi@enterprisedb.com> wrote: > DP> Hi Dave═ > > > DP> Ashesh asked me to review the patch. I have reviewed the > DP> patch and tested it. Found one behavior which gets change after > DP> applying the patch. > > > DP> Behavior Before:- When search direction is forward and user > DP> press F3, it searches the string in forward direction. Similarly > DP> if search direction is backward and user press F3, it searches the > DP> string in the backward direction. Nothing will be happen when user > DP> press═Shift-F3.═ > > > DP> Behavior After :- ═When user press F3, it searches the string > DP> in forward direction while on pressing Shift-F3, it searches the > DP> string in backward direction. It is not dependent on the search > DP> direction selected from the dialog. Also the selection of radio > DP> button is dependent on the key press, if F3 is pressed then > DP> forward button is selected and if Shift-F3 is pressed then > DP> backward is selected.═ > > > DP> Is this behavior acceptable?═ > > > > > > DP> No, I don't think so (if I'm understanding correctly). I > DP> believe what should happen is that: > > > DP> - F3 should honour the search direction on the radio buttons, > DP> in all cases. If the Forward button is selected, F3 searches > DP> forward, and if the Backwards button is selected, F3 searches > DP> backwards. > > > DP> - Shift-F3 should always do the opposite of what the radio > DP> buttons are set to. So, by default with the Forward radio button > DP> selected, Shift-F3 will search backwards, whilst if the Backwards > DP> radio button is selected, Shift-F3 should search forwards. > > > DP> The reason for this is that the radio buttons give the most > DP> obvious visual cue, so F3 (Find Next) should follow what they are > DP> set to. > DP> ═ > > > DP> On Thu, Feb 20, 2014 at 5:09 PM, Ashesh Vashi > DP> <ashesh.vashi@enterprisedb.com> wrote: > DP> Sure. > DP> I will do that. > > > > DP> On Thu, Feb 20, 2014 at 4:52 PM, Dave Page <dpage@pgadmin.org> wrote: > DP> Ashesh, can you look at, and if appropriate, commit this please? > > DP> Thanks. > > DP> On Mon, Feb 17, 2014 at 5:46 PM, J.F. Oster <jinfroster@mail.ru> wrote: >>> Hello! >>> >>> Pressing F3 in query editor makes the previously started search >>> continue forwards. >>> This patch adds expected behavior for Shift-F3. >>> >>> There is a minor inconvenience when just changing the search direction >>> - you have to press (Shift-)F3 *twice* for the (previous)next occurence >>> to get highlighted. That's because first time goes for cursor movement >>> to the corresponding boundary of current occurence. But that also >>> happens when search direction is changed with dialog radio-buttons, so >>> I think it's ok. >>> > > > -- > Best regards, > J.F. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
On Mon, Mar 10, 2014 at 3:10 PM, Dave Page <dpage@pgadmin.org> wrote:
On Sat, Mar 8, 2014 at 5:15 PM, J.F. Oster <jinfroster@mail.ru> wrote:Thanks. Akshay, can you take another look please?
> Hello Dave,
>
> Wednesday, February 26, 2014, 12:56:51 AM, you wrote:
>
> DP> Shift-F3 should always do the opposite of what the radio
> DP> buttons are set to. So, by default with the Forward radio button
> DP> selected, Shift-F3 will search backwards, whilst if the Backwards
> DP> radio button is selected, Shift-F3 should search forwards.
>
> You are right. For example, SciTE does the same.
>
> According to the above implemented it in a simplier way.
> Please see the patch.
Sure.
Yes, it should. Patches welcome :-)
> By the way, I was puzzled why search dialog's settings are saved
> sometimes and sometimes are not. Depending on dialog's close method:
> 1. Pressing ESC or "Close" form button calls OnCancel() which does not
> save;
> 2. Pressing title [x] button or Alt-F4 (or similar OS hotkey) calls
> OnClose() which does save.
>
> Shouldn't the behaviour be the same regardless of dialog's close
> method? Or at least the difference should be noted in documentation.
> Wednesday, February 26, 2014, 12:56:51 AM, you wrote:
>
> DP> On Tue, Feb 25, 2014 at 9:38 AM, Akshay Joshi
> DP> <akshay.joshi@enterprisedb.com> wrote:
> DP> Hi Dave═
>
>
> DP> Ashesh asked me to review the patch. I have reviewed the
> DP> patch and tested it. Found one behavior which gets change after
> DP> applying the patch.
>
>
> DP> Behavior Before:- When search direction is forward and user
> DP> press F3, it searches the string in forward direction. Similarly
> DP> if search direction is backward and user press F3, it searches the
> DP> string in the backward direction. Nothing will be happen when user
> DP> press═Shift-F3.═
>
>
> DP> Behavior After :- ═When user press F3, it searches the string
> DP> in forward direction while on pressing Shift-F3, it searches the
> DP> string in backward direction. It is not dependent on the search
> DP> direction selected from the dialog. Also the selection of radio
> DP> button is dependent on the key press, if F3 is pressed then
> DP> forward button is selected and if Shift-F3 is pressed then
> DP> backward is selected.═
>
>
> DP> Is this behavior acceptable?═
>
>
>
>
>
> DP> No, I don't think so (if I'm understanding correctly). I
> DP> believe what should happen is that:
>
>
> DP> - F3 should honour the search direction on the radio buttons,
> DP> in all cases. If the Forward button is selected, F3 searches
> DP> forward, and if the Backwards button is selected, F3 searches
> DP> backwards.
>
>
> DP> - Shift-F3 should always do the opposite of what the radio
> DP> buttons are set to. So, by default with the Forward radio button
> DP> selected, Shift-F3 will search backwards, whilst if the Backwards
> DP> radio button is selected, Shift-F3 should search forwards.
>
>
> DP> The reason for this is that the radio buttons give the most
> DP> obvious visual cue, so F3 (Find Next) should follow what they are
> DP> set to.
> DP> ═
>
>
> DP> On Thu, Feb 20, 2014 at 5:09 PM, Ashesh Vashi
> DP> <ashesh.vashi@enterprisedb.com> wrote:
> DP> Sure.
> DP> I will do that.
>
>
>
> DP> On Thu, Feb 20, 2014 at 4:52 PM, Dave Page <dpage@pgadmin.org> wrote:
> DP> Ashesh, can you look at, and if appropriate, commit this please?
>
> DP> Thanks.
>
> DP> On Mon, Feb 17, 2014 at 5:46 PM, J.F. Oster <jinfroster@mail.ru> wrote:
>>> Hello!
>>>
>>> Pressing F3 in query editor makes the previously started search
>>> continue forwards.
>>> This patch adds expected behavior for Shift-F3.
>>>
>>> There is a minor inconvenience when just changing the search direction
>>> - you have to press (Shift-)F3 *twice* for the (previous)next occurence
>>> to get highlighted. That's because first time goes for cursor movement
>>> to the corresponding boundary of current occurence. But that also
>>> happens when search direction is changed with dialog radio-buttons, so
>>> I think it's ok.
>>>
>
>
> --
> Best regards,
> J.F.--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Akshay Joshi
Principal Software Engineer

Phone: +91 20-3058-9517
Mobile: +91 976-788-8246
Mobile: +91 976-788-8246
Hi
--

On Mon, Mar 10, 2014 at 3:13 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
On Mon, Mar 10, 2014 at 3:10 PM, Dave Page <dpage@pgadmin.org> wrote:On Sat, Mar 8, 2014 at 5:15 PM, J.F. Oster <jinfroster@mail.ru> wrote:Thanks. Akshay, can you take another look please?
> Hello Dave,
>
> Wednesday, February 26, 2014, 12:56:51 AM, you wrote:
>
> DP> Shift-F3 should always do the opposite of what the radio
> DP> buttons are set to. So, by default with the Forward radio button
> DP> selected, Shift-F3 will search backwards, whilst if the Backwards
> DP> radio button is selected, Shift-F3 should search forwards.
>
> You are right. For example, SciTE does the same.
>
> According to the above implemented it in a simplier way.
> Please see the patch.Sure.
I have reviewed and tested the patch. Working fine and code looks good to me.
Yes, it should. Patches welcome :-)
> By the way, I was puzzled why search dialog's settings are saved
> sometimes and sometimes are not. Depending on dialog's close method:
> 1. Pressing ESC or "Close" form button calls OnCancel() which does not
> save;
> 2. Pressing title [x] button or Alt-F4 (or similar OS hotkey) calls
> OnClose() which does save.
>
> Shouldn't the behaviour be the same regardless of dialog's close
> method? Or at least the difference should be noted in documentation.
> Wednesday, February 26, 2014, 12:56:51 AM, you wrote:
>
> DP> On Tue, Feb 25, 2014 at 9:38 AM, Akshay Joshi
> DP> <akshay.joshi@enterprisedb.com> wrote:
> DP> Hi Dave═
>
>
> DP> Ashesh asked me to review the patch. I have reviewed the
> DP> patch and tested it. Found one behavior which gets change after
> DP> applying the patch.
>
>
> DP> Behavior Before:- When search direction is forward and user
> DP> press F3, it searches the string in forward direction. Similarly
> DP> if search direction is backward and user press F3, it searches the
> DP> string in the backward direction. Nothing will be happen when user
> DP> press═Shift-F3.═
>
>
> DP> Behavior After :- ═When user press F3, it searches the string
> DP> in forward direction while on pressing Shift-F3, it searches the
> DP> string in backward direction. It is not dependent on the search
> DP> direction selected from the dialog. Also the selection of radio
> DP> button is dependent on the key press, if F3 is pressed then
> DP> forward button is selected and if Shift-F3 is pressed then
> DP> backward is selected.═
>
>
> DP> Is this behavior acceptable?═
>
>
>
>
>
> DP> No, I don't think so (if I'm understanding correctly). I
> DP> believe what should happen is that:
>
>
> DP> - F3 should honour the search direction on the radio buttons,
> DP> in all cases. If the Forward button is selected, F3 searches
> DP> forward, and if the Backwards button is selected, F3 searches
> DP> backwards.
>
>
> DP> - Shift-F3 should always do the opposite of what the radio
> DP> buttons are set to. So, by default with the Forward radio button
> DP> selected, Shift-F3 will search backwards, whilst if the Backwards
> DP> radio button is selected, Shift-F3 should search forwards.
>
>
> DP> The reason for this is that the radio buttons give the most
> DP> obvious visual cue, so F3 (Find Next) should follow what they are
> DP> set to.
> DP> ═
>
>
> DP> On Thu, Feb 20, 2014 at 5:09 PM, Ashesh Vashi
> DP> <ashesh.vashi@enterprisedb.com> wrote:
> DP> Sure.
> DP> I will do that.
>
>
>
> DP> On Thu, Feb 20, 2014 at 4:52 PM, Dave Page <dpage@pgadmin.org> wrote:
> DP> Ashesh, can you look at, and if appropriate, commit this please?
>
> DP> Thanks.
>
> DP> On Mon, Feb 17, 2014 at 5:46 PM, J.F. Oster <jinfroster@mail.ru> wrote:
>>> Hello!
>>>
>>> Pressing F3 in query editor makes the previously started search
>>> continue forwards.
>>> This patch adds expected behavior for Shift-F3.
>>>
>>> There is a minor inconvenience when just changing the search direction
>>> - you have to press (Shift-)F3 *twice* for the (previous)next occurence
>>> to get highlighted. That's because first time goes for cursor movement
>>> to the corresponding boundary of current occurence. But that also
>>> happens when search direction is changed with dialog radio-buttons, so
>>> I think it's ok.
>>>
>
>
> --
> Best regards,
> J.F.--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company--Akshay JoshiPrincipal Software EngineerPhone: +91 20-3058-9517
Mobile: +91 976-788-8246
Akshay Joshi
Principal Software Engineer

Phone: +91 20-3058-9517
Mobile: +91 976-788-8246
Mobile: +91 976-788-8246
Hello, Thursday, March 13, 2014, 3:50:40 PM, Akshay Joshi wrote: DP>> Thanks. Akshay, can you take another look please? AJ> I have reviewed and tested the patch. Working fine and code looks good to me. Dave, will you apply it? >> By the way, I was puzzled why search dialog's settings are saved >> sometimes and sometimes are not. Depending on dialog's close method: >> 1. Pressing ESC or "Close" form button calls OnCancel() which does not >> save; >> 2. Pressing title [x] button or Alt-F4 (or similar OS hotkey) calls >> OnClose() which does save. >> >> Shouldn't the behaviour be the same regardless of dialog's close >> method? Or at least the difference should be noted in documentation. DP> Yes, it should. Patches welcome :-) Ok, after the current patch is applied I'll send in another one to make it save settings in both cases. -- Best regards, J.F.
On Wed, Mar 19, 2014 at 2:41 PM, J.F. Oster <jinfroster@mail.ru> wrote: > Hello, > > Thursday, March 13, 2014, 3:50:40 PM, Akshay Joshi wrote: > > DP>> Thanks. Akshay, can you take another look please? > > AJ> I have reviewed and tested the patch. Working fine and code looks good to me. > > Dave, will you apply it? I believe Ashesh was going to do that. I've been kinda busy of late :-( >>> By the way, I was puzzled why search dialog's settings are saved >>> sometimes and sometimes are not. Depending on dialog's close method: >>> 1. Pressing ESC or "Close" form button calls OnCancel() which does not >>> save; >>> 2. Pressing title [x] button or Alt-F4 (or similar OS hotkey) calls >>> OnClose() which does save. >>> >>> Shouldn't the behaviour be the same regardless of dialog's close >>> method? Or at least the difference should be noted in documentation. > > DP> Yes, it should. Patches welcome :-) > > Ok, after the current patch is applied I'll send in another one to > make it save settings in both cases. > > > -- > Best regards, > J.F. > > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
On Wed, Mar 19, 2014 at 8:11 PM, J.F. Oster <jinfroster@mail.ru> wrote:
--
--

Hello,
Thursday, March 13, 2014, 3:50:40 PM, Akshay Joshi wrote:
DP>> Thanks. Akshay, can you take another look please?
AJ> I have reviewed and tested the patch. Working fine and code looks good to me.
Dave, will you apply it?
Done. Thanks for the reminder.
Apologies for the delay, I was too very busy from last few days.
Apologies for the delay, I was too very busy from last few days.
DP> Yes, it should. Patches welcome :-)
>> By the way, I was puzzled why search dialog's settings are saved
>> sometimes and sometimes are not. Depending on dialog's close method:
>> 1. Pressing ESC or "Close" form button calls OnCancel() which does not
>> save;
>> 2. Pressing title [x] button or Alt-F4 (or similar OS hotkey) calls
>> OnClose() which does save.
>>
>> Shouldn't the behaviour be the same regardless of dialog's close
>> method? Or at least the difference should be noted in documentation.
Ok, after the current patch is applied I'll send in another one to
make it save settings in both cases.
--
Best regards,
J.F.
--Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
--
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
