Opened 10 years ago
Closed 9 years ago
#138 closed defect (wontfix)
Command-line does not receive ctrl-A, ctrl-E ... when graphics pane has focus
| Reported by: | Tom Goddard | Owned by: | Eric Pettersen |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Window Toolkit | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | chimera |
Description
The control characters for navigating to the beginning or end of the command-line entry field don't work unless the focus is on the command-line entry field. If the focus is on the graphics pane (from clicking in the graphics) then ctrl-A produces a capital A in the command entry field.
Change History (6)
comment:1 by , 10 years ago
| Status: | new → accepted |
|---|
comment:2 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Fixed by raising the main window to the top of the window hierarchy after the splash screen closes.
comment:4 by , 10 years ago
Hmm, the "doesn't work for all keys except under MSW" seems very applicable here. The retarded way Wx handles the control key modifier on the Mac seems to be the main culprit here.
comment:5 by , 10 years ago
| Component: | User Interface → Window Toolkit |
|---|
comment:6 by , 9 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | reopened → closed |
Moving to Qt, and this works in Qt.
The graphics pane forward the keystroke event to the command line, which then uses EmulateKeyPress() to process it. As per that function's documentation:
Please note that this function doesn’t currently work correctly for all keys under any platform but MSW.
So, will probably be an arduous adventure into Wx code to fix it.