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

1
15 comments
Avatar
Permanently deleted user

Follow-up: using Windows 8.1

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

0

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
Avatar
Permanently deleted user

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

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

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
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
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

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

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

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

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

Hello Nadia,

as mentioned my keyboard is working correctly. 

It works everywhere else, and also the F functions like adjusting the sound level etc. are working. 

Like I mentioned, I think the issue is that the new 2022 Magic Keyboard that has the Touch ID Button on it is not recognized as a external keyboard without an Fn key by IntelliJ Platforms. IntellIJ thinks its the internal keyboard and waits for the Fn Key to be pressed.

 

0

Hi,
We have set up a testing stand with Apple Magic keyboard. We were able to reproduce your error on it, but the following setting resolved it:

 

1

Hi Nadia,

thanks that works!

However its still not ideal, because this is the only app I am using that has these problems,
and now I can not use the utility functions of the F Keys.

With the previous generation keyboard it is working normally.
Most probably this is related to the TouchID feature on the keyboard, 
which appears to IntelliJ as the internal Keyboard.

I understand this is a low value issue, still wanted to point that out.

Best

0

Alright, I just found the Fn key on my keyboard.

Its a different move to learn, but its working now for me :)

1

Please sign in to leave a comment.