Print Page | Close Window

Short cut keys apply when an edit field has focus

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4426
Printed Date: 21 June 2025 at 2:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Short cut keys apply when an edit field has focus
Posted By: JamesH
Subject: Short cut keys apply when an edit field has focus
Date Posted: 16 June 2006 at 1:19pm
I have mentioned this issue before when I first discovered it with the report control http://forum.codejock.com/forum_posts.asp?TID=3652&KW=in%2Dplace&PID=11047#11047 - here .
 
However, I am now having the exact same issue but with a property grid. 
 
If you have a short cut key assigned to a command bar item this key can not be used when editing a property grid or report control.  This seems rediculous.  Our application (as do many others, eg. visual stuido) has many short keys that are needed for entering information when a property grid or report control cell is in edit mode.
 
This seems like a major flaw and makes using command bar short cuts virtually usless. Angry
 
Does anyone have a suggestion for a work-around?  Surely this must be an issue for other people.



Replies:
Posted By: markh
Date Posted: 18 June 2006 at 2:14pm
I agree this is a major problem with shortcut keys. Basically it seems that any child, of the frame window that contains the CommandBars object, doesn't receive any WM_KEYDOWN messages if the key happens to be used as a shortcut in CommandBars. This occurs irrespective of the focus and is impossible to override. I am having the same problem with a RichEdit control hosted in a DockingWindow. All of the shortcuts for the RichEdit such as Ctrl-C for copy are routed to CommandBars rather than being received by the control itself.
 
There definitely needs to be some mechanism of allowing the focus window to handle the message first before it is passed to CommandBars. I would have thought this could be done by first allowing the focus window to handle the keydown message and only passing it to CommandBars if it is not handled.
 
Without this mechanism the shortcut key system is useless for many apps and indeed I have stopped using it.
 
Any ideas of a way round this problem would be greatly appreciated.
 
 


Posted By: JamesH
Date Posted: 20 June 2006 at 2:12pm
It's good to hear I'm not the only one with this problem, not so great to hear the only work-around suggested so far is not use accelleartor keys.
 
This is seems crazy.  Is anyone using the accellerator keys


Posted By: vb1to6
Date Posted: 03 August 2006 at 11:45am

I use the WinHook control of the Desaware SpyWorks v7.1 to workaround the issue of turning off the Accelerator Keys of the CommandBar 9.81 and still getting the functionality I needed within complex VB 6.0 MDI applications.

I capture the accelerator keys on the MDI form and post them for the toolbar in code. I'm not saying it is not a drag to get around the "undocumented feature" of the CommandBar, however it beats the hell out of re-coding the entire project.



Posted By: Oleg
Date Posted: 03 August 2006 at 11:54am
Hi,
Actually... BeforeTranslate event of 10.3 release can help....


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net