How can equivalently use the equivalents of the keys of a menu item using characters that require switching, without the shift modifier in IB?

Setup:

In Interface Builder 3.2.5, when you set the key equivalent for a menu item using a character that is entered using the shift key (for example, a question mark), the key equivalent is set to an unmoved character on the same key with a shift modifier as part of the equiv key. For example, when trying to set the equiv key. in Command-Question Mark sets it as Command-Shift-Forward Slash.

A variety of US and Dvorak circuits, Unicode Hex Input, British and Canadian layouts, and my own Dvorak layout demonstrate this behavior.

Question:

How can you easily set equiv to a character that requires the use of the shift key without including the shift modifier as part of equiv?

Workarounds:

This can be done by switching to the keyboard layout, where you can enter the desired character without changing. You can also do this by editing the nib file containing the menu. However, none of them have the desired level of lightness. This can be done programmatically, but (for the purpose of this question) I'm only interested in how this can be done in IB.

<h / "> So far, Apple documents and web searches have not worked. If any resource on the Internet answers this question, please let me know.

+6
interface-builder keyboard-shortcuts macos
source share
2 answers

In IB 3, you must allow you to click the arrows to open the menu after entering what is an alternative. IB3 Picture

In Xcode 4, this is more obvious when typing in β‡§βŒ˜ / it has an Alternates drop-down menu that allows you to select ⌘?

Xcode picture

+2
source share

Try this, for example, on a German keyboard (on the same key as on ß), I managed to get CMD + ?, here we go:

  • click the Key Equiv field so that it is highlighted
  • hold shift
  • click? once
  • click cmd times
  • transfer exemption

Ok, is it not possible for US Keyboards to get CMD +? working in IB3. Did I manage to install CMD +? in IB4, although with an American keyboard. Take a look at the screenshot.

Interface Builder 3

enter image description here

Interface Constructor 4

enter image description here

German Keyboard Layout These are the two keys to the left of the backspace key.

enter image description here

+1
source share

All Articles