Shift-F6 not working for Refactor Rename

Answered

I'm using version 2018.2.4 (Ultimate)

 

Shift-F6 has stopped working.

 

How can I reset it to default?

 

I'm using the default KeyMap

11 comments
Comment actions Permalink

Follow-up: using Windows 8.1

Intellij no longer recognizes any Fn key (previously it did)

0
Comment actions Permalink

Do the keys work in other applications?

Check also you do not have any additional 3rd plugins installed (like IdeaVim with Tools | VIM Emulator mode enabled).

0
Comment actions Permalink

Hi Andrey,

Keyboard has a Fn lock key.

I hit it accidentally.

This caused the problem (not Intellij software).

Sorry for wasting your time via the forum.

0
Comment actions Permalink

Thanks for this.  I'm on Mac OS too.  If a default IntelliJ shortcut doesn't work, try the same keyboard shortcut again, but with the Fn key too.  I have to do this for rename Shift + F6 (rename variable) and F1 (view documentation for symbol)

0
Comment actions Permalink

I am having this problem with the new 2022 Magic Keyboard.

The Shortcut is working on the Macbook's internal keyboard with pressing the Fn key.

It also works on my 2020 Magic Keyboard with just Shift + F6.

It doesn't work with pressing Fn on the Internal Keyboard and Shift + F6 on the 2022 Keyboard.

So apperantly, since the 2022 Keyboard has TouchId and all that fancy m1 chip stuff, it may be recognized as an internal keyboard.

Would be great if this can be resolved somehow :)

0
Comment actions Permalink
Hi,

Currently, we don't support `Fn` in our shortcuts. We will consider your scenario, but can you please share a photo of your tabletop so we can understand your keyboards arrangement?
0
Comment actions Permalink
Hi,

According to my tests, the `Fn` key combination only works if `Fn` is pressed on the same keyboard where the rest of the key combination is located. This is a system-wide problem (for example, Google Chrome can't recognize `Fn + F` shortcut entered this way). I have created a support topic on Apple forums - https://discussions.apple.com/thread/254571179

Unfortunately, JetBrains cannot help any further.
0
Comment actions Permalink

Hi Nadia,

Thanks for your reply.

Pressing keys on different keyboards should not be the solution anyway. I just reported everything I tried so far.

The real problem is that the new Magic Keyboard with Touch ID gets recognized as if it was an internal keyboard by the IDE, thus requiring the Fn key being pressed in addition to the other shortcut keys.
But the Magic Keyvoard does not have an Fn key.

The solution would be that the new Magic Keyboard being recognized as an external keyboard, thus not requiring the Fn key for Shortcuts to work.

As stated above, with my old kMagic Keyboard everything works as expected.

0
Comment actions Permalink

Thank you for the additional explanation.

I have written a plugin that will help to understand what happens in your specific case. Can you please install it and send me the codes?

1) Please type `F6` on your Magic keyboard and copy the codes to me
2) Please type `Cmd + F6` and copy the codes to me

To install the plugin, please open `Preferences | Plugins | ⚙️ (Gear) | Install plugin from disk`
https://jbs.zendesk.com/attachments/token/7SSxVgEJmy8YI5AOXElO02i2s/?name=KeyCodesTest-1.0-SNAPSHOT.zip

0
Comment actions Permalink

Hi Nadia,

thanks for your quick support and sorry for the late response.

When I just press F6 on the Magic Keyboard, nothing happens in the output of the Plugin.

 

When I Press Shift + F6 this is the output (probably KeyDown and KeyUp Events):

java.awt.event.KeyEvent[KEY_PRESSED,keyCode=16,keyText=⇧,keyChar=Undefined keyChar,modifiers=⇧,extModifiers=⇧,keyLocation=KEY_LOCATION_LEFT,rawCode=0,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x10] on javax.swing.JTextField[,0,22,464x30,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder@65c53f49,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187] Name: TextField.caretForeground,disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128] Name: TextField.inactiveForeground,editable=true,margin=com.intellij.util.ui.JBInsets[top=2,left=6,bottom=2,right=6],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255] Name: TextField.selectionForeground,selectionColor=javax.swing.plaf.ColorUIResource[r=47,g=101,b=202] Name: TextField.selectionBackground,columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]

java.awt.event.KeyEvent[KEY_RELEASED,keyCode=16,keyText=⇧,keyChar=Undefined keyChar,keyLocation=KEY_LOCATION_LEFT,rawCode=0,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x10] on javax.swing.JTextField[,0,22,632x30,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder@65c53f49,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187] Name: TextField.caretForeground,disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128] Name: TextField.inactiveForeground,editable=true,margin=com.intellij.util.ui.JBInsets[top=2,left=6,bottom=2,right=6],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255] Name: TextField.selectionForeground,selectionColor=javax.swing.plaf.ColorUIResource[r=47,g=101,b=202] Name: TextField.selectionBackground,columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]

The following is the output for Command + F6, but I guess its the same, the F6 Key just is ignored.

 

java.awt.event.KeyEvent[KEY_PRESSED,keyCode=157,keyText=⌘,keyChar=Undefined keyChar,modifiers=⌘,extModifiers=⌘,keyLocation=KEY_LOCATION_LEFT,rawCode=0,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x9d] on javax.swing.JTextField[,0,22,464x30,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder@65c53f49,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187] Name: TextField.caretForeground,disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128] Name: TextField.inactiveForeground,editable=true,margin=com.intellij.util.ui.JBInsets[top=2,left=6,bottom=2,right=6],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255] Name: TextField.selectionForeground,selectionColor=javax.swing.plaf.ColorUIResource[r=47,g=101,b=202] Name: TextField.selectionBackground,columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]

java.awt.event.KeyEvent[KEY_RELEASED,keyCode=157,keyText=⌘,keyChar=Undefined keyChar,keyLocation=KEY_LOCATION_LEFT,rawCode=0,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x9d] on javax.swing.JTextField[,0,22,632x30,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder@65c53f49,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187] Name: TextField.caretForeground,disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128] Name: TextField.inactiveForeground,editable=true,margin=com.intellij.util.ui.JBInsets[top=2,left=6,bottom=2,right=6],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255] Name: TextField.selectionForeground,selectionColor=javax.swing.plaf.ColorUIResource[r=47,g=101,b=202] Name: TextField.selectionBackground,columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]

The following is the output when I Press Shift + F6 on the old Keyboard:

 

java.awt.event.KeyEvent[KEY_PRESSED,keyCode=16,keyText=⇧,keyChar=Undefined keyChar,modifiers=⇧,extModifiers=⇧,keyLocation=KEY_LOCATION_LEFT,rawCode=0,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x10] on javax.swing.JTextField[,0,22,464x30,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder@65c53f49,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187] Name: TextField.caretForeground,disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128] Name: TextField.inactiveForeground,editable=true,margin=com.intellij.util.ui.JBInsets[top=2,left=6,bottom=2,right=6],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255] Name: TextField.selectionForeground,selectionColor=javax.swing.plaf.ColorUIResource[r=47,g=101,b=202] Name: TextField.selectionBackground,columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]

java.awt.event.KeyEvent[KEY_PRESSED,keyCode=117,keyText=F6,keyChar=Undefined keyChar,modifiers=⇧,extModifiers=⇧,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x75] on javax.swing.JTextField[,0,22,632x30,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder@65c53f49,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187] Name: TextField.caretForeground,disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128] Name: TextField.inactiveForeground,editable=true,margin=com.intellij.util.ui.JBInsets[top=2,left=6,bottom=2,right=6],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255] Name: TextField.selectionForeground,selectionColor=javax.swing.plaf.ColorUIResource[r=47,g=101,b=202] Name: TextField.selectionBackground,columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]

java.awt.event.KeyEvent[KEY_RELEASED,keyCode=117,keyText=F6,keyChar=Undefined keyChar,modifiers=⇧,extModifiers=⇧,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x75] on javax.swing.JTextField[,0,22,632x30,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder@65c53f49,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187] Name: TextField.caretForeground,disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128] Name: TextField.inactiveForeground,editable=true,margin=com.intellij.util.ui.JBInsets[top=2,left=6,bottom=2,right=6],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255] Name: TextField.selectionForeground,selectionColor=javax.swing.plaf.ColorUIResource[r=47,g=101,b=202] Name: TextField.selectionBackground,columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]

java.awt.event.KeyEvent[KEY_RELEASED,keyCode=16,keyText=⇧,keyChar=Undefined keyChar,keyLocation=KEY_LOCATION_LEFT,rawCode=0,primaryLevelUnicode=0,scancode=0,extendedKeyCode=0x10] on javax.swing.JTextField[,0,22,632x30,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder@65c53f49,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187] Name: TextField.caretForeground,disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128] Name: TextField.inactiveForeground,editable=true,margin=com.intellij.util.ui.JBInsets[top=2,left=6,bottom=2,right=6],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255] Name: TextField.selectionForeground,selectionColor=javax.swing.plaf.ColorUIResource[r=47,g=101,b=202] Name: TextField.selectionBackground,columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]

 

0
Comment actions Permalink

Thank you for the update. 
It means JBR does not recognize your F-keys without pressing `Fn` key. I have that kind of keyboard (but with the `Fn` key, and on F6 it raises the system sound level). 

1. Did I understand correctly that you don't see the system sound notification either?
2. Do other applications recognize `F6` press on the external keyboard?

0

Please sign in to leave a comment.