The UltraComboEditor [in edit mode] supports Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z but ignores Ctrl+A.
The default context menu however includes 'Select All' so I would expect it to support Ctrl+A.
Is this a bug or is there a good reason why it does not support that shortcut?
ThanksMike
Hi Mike,
Thank you for contacting Infragistics Developer Support.
The UltraComboEditor does support Ctrl+A. I tested it using v13.2.20132.2023 and this functionality works properly for me, pressing the Ctrl+A selects the whole text. Could you please let me know exactly which version of Infragistics you are using? I have attached my sample, please modify it so it reproduces your issue and I will be glad to research your issue further.
I am looking forward to your reply.
I am using the slightly older version 13.2.20132.1011, but your sample works with that version also.
I suspect that the problem is related to the fact that Ctrl+A is also defined as a shortcut for the application's Ultra toolbar.
Past experience has shown me that the toolbar sometimes grabs shortcuts that I was not expecting it to grab.On further examination I find that it is not only the combo box that exhibits this issue. All the other 'ultra' editors I use on my modal and modeless dialogs also ignore the Ctrl+A shortcut, even though their context menus 'Select All' items work.(They don't just ignore the shortcut - the app 'beeps' when I type it.)
Strangely, Ctrl+C and Ctrl+V work fine for all controls - and those are also assigned to the toolbar.
Well, if you have another dialog displayed, without a toolbar, then I'm not sure what happens. But there's really no reason to guess - this is incredibly easy to test. Just put a breakpoint in the ToolClick event of the ToolbarsManager. If it's firing, then the toolbar is handling the keystroke.
You are correct.
I verified that it is not the Toolbar that is intercepting Ctrl+A.I also commented out the 2 'Key' handlers I had added and the problem remains.
The only thing left that might be intercepting Ctrl+A is the UltraFormManager.I dont have an events attached to that - I use it only to apply a style - but maybe it has some intrinsic handling of Ctrl+A. Aparently that tells it to do something that is not valid - that would explain the 'beep' when I press Ctrl+A.
I don't see anything about shortcuts in the documentation ... but then there is virtuslly no info on this class except for the list of properties and methods.
Does UltraFormManager intercept Ctrl+A? and if so how do I prevent it from doing so?
mikedempsey said:Does UltraFormManager intercept Ctrl+A?
I can't think of any reason why it would do so.
You said that other controls on the same form don't respond to Ctrl+A, either. Is that right? Is it just Infragistics controls or does the same thing happen with a TextBox control?
Assuming it's all controls, then there must be something on that form eating the keystroke before it gets to them. Seems unlikely that it's the FormManager. but again, this should be very easy to test - just take it off and see if the problem goes away.
Other things that could be eating the keystroke are a ContextMenu, inbox ToolStrip/MenuStrip, or the KeyPreview event of the form. I suppose you could also try disabling or removing the toolbar on the main form just to further rule it out.
You are correct. It is not the UltraFormManager.
I removed the FormManager and the one key handler I had on one of the dialogs and I still get the beep when pressing Ctrl+A.The dialog does not have a context menu or any inbox controls, and I don't use KeyPreview.The only context menus are the ones built into your controls. [and for the text editor that includes a working 'Select All' menu.]
Since I only care about Select All for the text boxes and those only exist on 2 dialogs I will simply add KeyDown handlers to those 3 text boxes. That solves the issue even if I can't track down the root cause.
That is a puzzle.
The only other thing I can think of to try would be to show the form on it's own, and not as a child of the parent form. Just show it using the Show method without passing in an owning window and see if that has any effect. If that works, then something on the parent form is eating the key stroke.
Hello Mike,
I am just checking about the progress of this issue. Have you had the time to look into this. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
Thank you for the update.
When you have the time, please upload the sample. I will be glad to look into it.
I created a simple test app but the problem does not occur.
I used an empty parent form and displayed one of the actual dialogs that fails, but it works fine when called from this empty parent.
So apparently it is caused by the parent form even though it still occurs when I don't pass the parent to the Show() or ShowDialog() method.
I don't have time to work on this at the moment but I may revisit it later.
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Are you able to create a small sample project which reproduces the issue? We will be glad to research the sample and this way we can locate the issue a lot faster.