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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    656 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    371 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X