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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    245 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    157 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    165 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    250 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    201 views
    0 likes
    Last Post CarlTrading  
    Working...
    X