Project

General

Profile

Bug #3061

ENTER key does not generate a GO event in GUI

Added by Hynek Cihlar about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
Due date:
% Done:

100%

billable:
No
vendor_id:
GCD
case_num:

History

#1 Updated by Hynek Cihlar about 8 years ago

In ask-gui.p, when run in the current trunk, one can see a problem where the ENTER key does not generate a GO event. F2 can be used to generate the GO but the ENTER is always ignored.

Similarly ENTER does not confirm selected value in COMBO-BOX drop-down.

#2 Updated by Hynek Cihlar about 8 years ago

It took me a while to figure out the following problem.

When an overlay window was closed (hidden and destroyed), Swing would not send focus-lost for the overlay window and focus-gained for the owner. This didn't put input focus into the main window and so the app seemed to freeze (until mouse clicked into the main window).

It turned out to be caused by the order of window-hide and window-activate requests. The window-activate for the owner must be issued before the overlay window is made hidden, the vice versa doesn't work. I made a comment in the code for future reference.

#3 Updated by Hynek Cihlar about 8 years ago

Please review task branch 3061a revision 11008, rebased against trunk 11001.

The revision resolves both issues mentioned in note 1. It also adds some related fixes. GUI regression tests passed, ChUI in progress.

#4 Updated by Hynek Cihlar about 8 years ago

The last ChUI regression test run for 3061a finished with 10 suspected false negatives. I am restarting the tests.

#5 Updated by Greg Shah about 8 years ago

Code Review Task Branch 3061a Revision 11008

I'm fine with the changes. If correct, they simplify our approach which is great.

Constantin/Sergey: please review.

Igor: please review the FillIn change.

#6 Updated by Hynek Cihlar about 8 years ago

Task branch 3061a revision 11008 passed GUI and ChUI regression tests.

#7 Updated by Greg Shah about 8 years ago

Please rebase and then let's discuss if any further testing is needed.

#8 Updated by Igor Skornyakov about 8 years ago

Greg Shah wrote:

Igor: please review the FillIn change.

The change looks OK. In fact it is a fix of my bug.

#9 Updated by Hynek Cihlar about 8 years ago

While rebasing against trunk 11003 there are nontrivial conflicts, regression retest will be needed.

#10 Updated by Constantin Asofiei about 8 years ago

Greg Shah wrote:

Code Review Task Branch 3061a Revision 11008
...
Constantin...: please review.

I'm OK with the changes.

#11 Updated by Hynek Cihlar about 8 years ago

Rebased 3061a against trunk 11003, the branch is now at revision 11011. The revision has passef GUI regression tests, ChUI regression in progress.

#12 Updated by Hynek Cihlar about 8 years ago

3061a revision 11011 passed regression testing and is ready to be merged to trunk.

#13 Updated by Greg Shah about 8 years ago

Sergey: please review.

Hynek: If Sergey is OK, please merge to trunk.

#14 Updated by Sergey Ivanovskiy about 8 years ago

Hynek, I tested ./ask-gui.p with the Swing client for 3061a branch 11011. Rebuild the project several times and checked the configuration. It seems that ENTER doesn't work only if F2 is pressed. May be you don't commit something? And for my environment the client window appears inactive and continues to be inactive after minimizing and restoring and pressing keys in the program input field.

#15 Updated by Sergey Ivanovskiy about 8 years ago

It was my mistake forgot the p2j link.

#16 Updated by Hynek Cihlar about 8 years ago

Sergey Ivanovskiy wrote:

And for my environment the client window appears inactive and continues to be inactive after minimizing and restoring and pressing keys in the program input field.

As for the window activation issues, these are about to be resolved by #2823.

#17 Updated by Sergey Ivanovskiy about 8 years ago

Fixed configuration and tested ask-gui.p. The code changes is ok for me.

#18 Updated by Hynek Cihlar about 8 years ago

3061a merged to trunk revision 11004 and archived.

#19 Updated by Hynek Cihlar about 8 years ago

  • % Done changed from 0 to 100

#20 Updated by Greg Shah about 8 years ago

  • Start date deleted (04/11/2016)
  • Status changed from New to Closed
  • Assignee set to Hynek Cihlar
  • Target version set to Milestone 16

#21 Updated by Greg Shah over 7 years ago

  • Target version changed from Milestone 16 to Cleanup and Stabilization for GUI

Also available in: Atom PDF