logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
matt.smokeball Posted: Thursday, June 21, 2018 6:34:50 PM(UTC)
 
Oh yep. Thanks! I was hooking into the OnPreviewDown event rather than overriding it. That works. Cheers
Paul Rayman Posted: Wednesday, June 13, 2018 11:48:54 PM(UTC)
 
I have checked on my document the following

Code:

        protected override void OnPreviewKeyDown(KeyEventArgs e)
        {
            base.OnPreviewKeyDown(e);
        }

Keystrokes are intercepted without any problems. Could you please provide your document and code.
Although I'm sure that the document does cannot affect to the standard UIElement
matt.smokeball Posted: Wednesday, June 13, 2018 3:39:38 PM(UTC)
 
Hi

We're using the WPF viewer, and everything has been great. I need to detect keyboard ctrl+s in order to save the document. I can detect it find for most places, but it seems the keyboard events don't raise if the focus is on a checkbox or radio button form field (it works for a text box fine).

Just hoping there is a way that we can capture the keyboard event here, or if there is any known way in the viewer/document to respond to a ctrl+s event to save the document?

Thanks