Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Don't add shortcuts that have a key available only when AltGr key is pressed. #446

Merged
merged 1 commit into from
May 22, 2014

Conversation

RaymondLim
Copy link
Contributor

Also make sure that we don't show unavailable shortcuts in the menus. This fixes adobe/brackets#7859.

…pressed. Also make sure that we don't show unavailable shortcuts in the menus.
@JeffryBooher JeffryBooher self-assigned this May 22, 2014
@RaymondLim
Copy link
Contributor Author

Testing instructions:

  • Add either Czech or Croatian keyboard layout. See http://support.microsoft.com/kb/258824 for adding a new keyboard layout.
  • Launch your dev build of Brackets and when prompted to select index.html page, switch to CS or HR from Language Bar or the language icon in the Task Bar. This will ensure that Brackets is open with your desired keyboard layout.
  • If you're running Brackets w/o having to select index.html page, then you need to switch keyboard layout after launch and reloading it by press F5.
  • Try to use Ctrl+F or Ctrl+G and see FInd bar shows up.
  • Verify that Ctrl+[ and Ctrl+] shortcuts are not showing up under Edit menu.

@redmunds
Copy link
Contributor

Looks good. Merging.

redmunds added a commit that referenced this pull request May 22, 2014
Don't add shortcuts that have a key available only when AltGr key is pressed.
@redmunds redmunds merged commit c5cd588 into master May 22, 2014
@redmunds redmunds deleted the rlim/altGr-key-issue branch May 22, 2014 23:12
@@ -1528,18 +1528,26 @@ bool UpdateAcceleratorTable(int32 tag, ExtensionString& keyStr)
// Get the virtual key code for non-alpha-numeric characters.
int keyCode = ::VkKeyScan(ascii);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to be careful about data types here so when we port to a 64-bit arch we don't have a lot to cleanup. That said, keyCode should be a SHORT as defined by Windows.

@iegik
Copy link

iegik commented Jun 10, 2014

Related to adobe/brackets#8100

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CTRL+F and CTRL+G shortcuts don't work on keyboards with AltGr key (Sprint 39)
4 participants