afrog icon indicating copy to clipboard operation
afrog copied to clipboard

ctrl+alt+f2 does not add a bookmark

Open combiths opened this issue 12 years ago • 25 comments

I'm having trouble adding / removing bookmarks using ctrl+alt+f2. According to my keybindings that should toggle a bookmark for a certain line which isn't the case. When I go to the menu and click Edit > Bookmark > Toggle bookmark it works. Please advise. Thanks.

combiths avatar Oct 22 '14 18:10 combiths

What displays in the keybinding resolver when you press that keybinding? ctrl-.

kevinsawicki avatar Oct 22 '14 21:10 kevinsawicki

On the latest Atom source for Windows 7 x64, I was able to toggle and untoggle a bookmark (I think).

output

targeter21 avatar Oct 23 '14 01:10 targeter21

ctrl+alt display fine in the resolver. When I press f2 it doesn't display in the resolver. Actually f1 - f4 don't display. Only when I get to f5+ do I see it display in the resolver. The following shows my keybindings in my version of Atom (0.138.0).

image

I also tried adding ctrl+alt+f5 as a keybinding to the toggle bookmark action in my keymap file and now the resolver doesn't detect ctrl+alt+f5 :\

image

combiths avatar Oct 23 '14 13:10 combiths

@combiths What keyboard layout are you using?

kevinsawicki avatar Oct 23 '14 20:10 kevinsawicki

@kevinsawicki sorry for late reply. I was out of town. I'm using a standard QWERTY keyboard (nothing out of the ordinary).

combiths avatar Oct 29 '14 16:10 combiths

I tried to reproduce this on a Windows 8.1 VM but was unable to.

Could you possibly have something installed at the OS level that is binding to these keys and is overtaking the application level keyboard events?

If you try something that doesn't involve the F keys such as ctrl-alt-b, does that keybinding work?

kevinsawicki avatar Nov 10 '14 23:11 kevinsawicki

I can reproduce exactly what @combiths described.

  • Ctrl+Alt+F2 does not toggle a bookmark (neither does Alt+Ctrl+F2)
  • Edit > Bookmark > Toggle Bookmark works (but has Alt+Ctrl+F2 as the keybinding, which is a bit weird)
  • F1 through F4 does not work with Ctrl+Alt
  • All function keys work fine when not combined

Atom 0.150.0, Windows 7 x64. If this matters, I have my laptop set to press the function key by default, not the special (eg sound up/down, brightness up/down) key-those require pressing Fn and the function key in order to activate.

EDIT: Ctrl+Alt+B works fine.

winstliu avatar Nov 21 '14 23:11 winstliu

I also have this issue!

When using the 'Edit > Bookmark > Toggle Bookmark', it works just fine. When trying ctrl + alt + F2, it doesn't do anything.

Windows 8.1 x64 Atom 0.158.0

FWIW - The Keybinding Resolver does not recognize ctrl + alt + (F1 - F5, nor F7).

I don't know what @50Wliu is talking about, but ctrl+alt+b does not bookmark, and AFAIK it isn't supposed to bookmark in Atom! You must have set your own custom keybinding to it.

Temporary Solution - I can confirm that you can attach keybinding to another value, and it works. So Atom just doesn't recognize the F2 key for some reason. The temporary solution for users who would like to have this working, is to create your own keybinding. You can access your keymap.cson by going to 'Settings > Keybindings', then select the link 'your keymap file'. It will open your keymap.cson for you. Add this to it:

'atom-text-editor':
    'ctrl-alt-b': 'bookmarks:toggle-bookmark'

CyberPunkCodes avatar Dec 16 '14 05:12 CyberPunkCodes

@WadeShuler: @kevinsawicki asked to test if Ctrl+Alt+B worked just to rule out some theories.

winstliu avatar Dec 16 '14 12:12 winstliu

You may have something on your computer that has registered a global hotkey with Windows. The Intel graphics and media control panel is one of those that registers CTRL+ALT hotkeys. Its always caused a problem for me with Sublime Text as it uses CTRL+ALT+Up/Down to expand the selection (Atom uses this keybind too) and Intel defaults to using those key strokes as global hotkeys for rotating your display. And even disabling it will sometimes not give you control over those key combinations, so sometimes you have to re-bind them to some other combination.

LoneBoco avatar Jan 24 '15 01:01 LoneBoco

Heh, I just tried to test this on Linux and forgot that Ctrl+Alt+F2 shunted you off the graphical display and to the terminal...whoops. I do have some Intel stuff on Windows, but I don't think I have hotkeys enabled for it. I'll check when I get back on Windows.

winstliu avatar Jan 24 '15 02:01 winstliu

@LoneBoco I haven't tested or verified what you said. If it is true that those keys are not available on Intel PCs, then it would make sense that it is a design flaw on Atom's shoulders (copied from Sublime). You can't simply say that ALL Intel users have to re-setup their bindings for the CTRL+ALT-F* keys. 1, that just will be a never ending supply of complaints and support issues popping up for many years. 2, it affects way too many people to ignore it. - Atom should, out of the box, use different key binding combinations to completely eradicate this issue.

CyberPunkCodes avatar Jan 24 '15 19:01 CyberPunkCodes

I can confirm that my issue is due to Intel's keybindings (that no one knows about since they're documented only in like the 10th result of a Google search...).

Echoing what @WadeShuler said: Atom should use different key bindings for this, just as the key binding for changing encoding was switched on Linux to avoid a conflict.

winstliu avatar Feb 01 '15 22:02 winstliu

@LoneBoco This approach solves my problem,Disable Intel graphics shortcuts.

jwfeng avatar Feb 12 '15 06:02 jwfeng

Disabling the Intel graphics keyboard bindings also worked for me on Windows 7 (yes I'm still using it at work :-( ) Anyway, this article has details: http://superuser.com/questions/279756/how-to-disable-the-screen-orientation-hotkeys-in-windows-xp

ignotus0001 avatar Mar 12 '15 21:03 ignotus0001

I have this issue too on Mac OSX 10.10.3 . When I do cmd+f2 (or cmd+fn+f2 in case of my laptop) it emits a beep sound and nothing happens. When I click Edit > Bookmark > toggle bookmark it works.

carlosacp avatar Apr 29 '15 18:04 carlosacp

I think Atom by default, needs to change the keybindings on the function keys. As stated, this is probably due to something else on your system bound to those keys (ie: Intel graphics), breaking them in atom.

Until recently, I was using CTRL+ALT+B: 'atom-text-editor': 'ctrl-alt-b': 'bookmarks:toggle-bookmark' 'ctrl-alt-2': 'editor:fold-at-indent-level-2'

However, I just realized that CTRL+ALT+B is used for Beautify as well. CTRL+B and ALT+B are used up too. I changed it to CTRL+SHIFT+B, which the keybinding resolver indicates its the fuzzy-finder:toggle-git-status-finder. I don't use git inside Atom anyways, I just like to see the colors in a project under git so know visually what files have been edited before committing.

CyberPunkCodes avatar May 17 '15 03:05 CyberPunkCodes

If you're using a Mac (I'm using OS X Yosemite 10.10.3), the problem is likely in the basic keyboard setup for function keys. See https://support.apple.com/kb/PH13982?locale=en_US for details. After I selected the “Use all F1, F2, etc. keys as standard function keys” checkbox, my bookmarks key bindings worked fine.

ghost avatar Jul 09 '15 17:07 ghost

i had the same problem. disabling hkcmd.exe from startup on windows solved the problem

gosteev avatar Sep 06 '15 18:09 gosteev

Got the same issue! win7 64bit

lianyi avatar Dec 22 '15 14:12 lianyi