Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Capturing left/right/up/down arrow keys in a WPF TextBox control on a chart.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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!

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    57 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    78 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    41 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    101 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    61 views
    0 likes
    Last Post PaulMohn  
    Working...
    X