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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
28 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
183 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
337 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
261 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment