Any way to intercept the key events for the arrow keys? Thanks in advance!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Capturing left/right/up/down arrow keys in a WPF TextBox control on a chart.
Collapse
X
-
Capturing left/right/up/down arrow keys in a WPF TextBox control on a chart.
Have no problem capturing any input from the keyboard using the TextBox's PreviewKeyDown() - except for the arrow keys (left and right specifically), which don't trigger an event for PreviewKeyDown for any user-added controls on the chart. They just shift the chart left/right.
Any way to intercept the key events for the arrow keys? Thanks in advance!Tags: None
-
Hello NicholasJoannette,
Thank you for the post.
As far as I am aware there is not a way to catch the arrow keys in contrast to how you can access key events in NinjaTrader. The events are not passed to the Key or PreviewKey events as they are being used by the chart and its keyboard handling. Other controls like a textbox do not see those events.
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
656 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
371 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
579 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment