<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Disabling certain shortcut keys</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Disabling certain shortcut keys]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:04:11 +0000</pubDate>
  <lastBuildDate>Thu, 03 Feb 2005 15:14:18 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=1748</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Disabling certain shortcut keys : I&amp;#039;ve actually spent at lot...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1748&amp;PID=4988&amp;title=disabling-certain-shortcut-keys#4988</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 1748<br /><strong>Posted:</strong> 03 February 2005 at 3:14pm<br /><br /><P>I've actually spent at lot of time looking into this, and there is no solution.</P><P>A simple scenario is using Ctrl+C for the Copy command.&nbsp; This is a shortcut that is used by many controls in an application, and it'd be crazy to assign this to a CommandBarControl because it's almost impossible to figure out which of the many controls on the screen should have the copy command applied to it.&nbsp; The real problem is with customization.&nbsp; If a user goes and customizes the Ctrl+C shortcut, you've just lost the built-in copy functionality from all your controls (since CommandBars will steal the command from everything in your app).</P><P>The easy workaround would be for Codejock to update the customization procedures to either allow you to specificy shortcuts that cannot be used to customize OR at least expose an event you can respond to before a key binding is added that would allow you to cancel the assignment.</P><P>Way back on Sept 16, 2004, I submitted an item to Codejock title <strong>"More Properties/Methods for CommandBars KeyBindings"</strong> (Issue #1713).&nbsp; The following summarizes that request:</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>Request: The Xtreme Suite for ActiveX CommandBars object only allows you to programatically add keybindings.&nbsp;I would like to see more properties and method available to the programmer for use with keybindings:<BR><BR>1) Method to Delete KeyBinding from a Command<BR>2) Property to determine which Command is bound to a key<BR>3) Ability to enumerate all configured KeyBindings<BR><BR>Since I allow users to customize toolbars, I have no way of knowing what KeyBindings they have created.&nbsp;Because I reserve certain shortcut keys (like F1), I also need to be able to prevent the user from binding certain keys to a command.&nbsp;Can you add a ''BeforeAddKeyBidning'' event to CommandBars that allows the programmer to cancel a particular keybinding request.&nbsp;This would allow me to detect that the user tried to bind F1 to a command so I could refuse the new key binding and prompt them for the reason why.<BR><BR>I''ve requested this feature in the past, but I''ve never really heard anything about it.&nbsp;I''d appreciate it if someone could comment on the possibility of incorporating this into the CommandBars product.<BR><BR>Keep up the great work!!</P></BLOCKQUOTE><P>Unfortunately, it's now been 5 months and I've received absolutely no response <IMG src="http://forum.codejock.com/smileys/smiley18.gif" border="0">.&nbsp; This is one of <strong>10</strong> items I've posted and never received any feedback on whatsoever.</P>]]>
   </description>
   <pubDate>Thu, 03 Feb 2005 15:14:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1748&amp;PID=4988&amp;title=disabling-certain-shortcut-keys#4988</guid>
  </item> 
  <item>
   <title><![CDATA[Disabling certain shortcut keys : I suppose you could add a key...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1748&amp;PID=4985&amp;title=disabling-certain-shortcut-keys#4985</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1748<br /><strong>Posted:</strong> 03 February 2005 at 1:44pm<br /><br />I suppose you could add a key binding for all disallowed key to an ID,and in the commandbars_execute event you can use this Id to display youmessage.]]>
   </description>
   <pubDate>Thu, 03 Feb 2005 13:44:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1748&amp;PID=4985&amp;title=disabling-certain-shortcut-keys#4985</guid>
  </item> 
  <item>
   <title><![CDATA[Disabling certain shortcut keys : Hi,  Is there a way to disable...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1748&amp;PID=4984&amp;title=disabling-certain-shortcut-keys#4984</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=972">Marek</a><br /><strong>Subject:</strong> 1748<br /><strong>Posted:</strong> 03 February 2005 at 1:42pm<br /><br /><P>Hi, </P><P>Is there a way to disable a set of characters to be used as shortcut keys? ie if a user selects one of the forbidden shortcut keys in the Customization Dialog, a warning would appear and the key would be disallowed?</P><P>Thanks.</P><P>-m</P>]]>
   </description>
   <pubDate>Thu, 03 Feb 2005 13:42:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1748&amp;PID=4984&amp;title=disabling-certain-shortcut-keys#4984</guid>
  </item> 
 </channel>
</rss>