I’ve accidentally tapped the F and D keys together when using Alt+D to reach the address bar a few times. There is no matching shortcut or close-window command in the File menu, yet it instantly closes the window. Can someone tell me why?

Edit: Clarified first sentence and added screen shot for the doubters:

  • funchords@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Seems to do Close Window, the same thing as Ctrl+Shift+W or Alt+F4

    In fact, if I do Alt+F, I see the command “Close Window Ctrl+Shift+W” where the d character is underlined. If I just Alt and then arrow-click the File menu, I don’t see that command at all.

    • onoOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Ah! Yes, it’s hidden if I open the menu with the mouse, too.

      A menu option that’s shown only if the menu is opened in a certain way. How confusing.

  • tjn21@fedia.io
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I’m not willing to try it. Does your OS perhaps contain such a combination?

    • funchords@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      It closes whole windows. You can try it safely by opening a second Firefox whole window, open a few tabs on it, and then Alt-F, D and the entire window closes. (Your first Firefox window is unaffected.)

      • tjn21@fedia.io
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I’m still getting the hang of this site. I thought I replied to your comment but my reply showed separately. I get the same result as the OP.

  • janWilejan@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    The underlined letters are shortcuts:

    New T ab: Alt + F, T
    New Container Ta b: Alt + F, B
    N ew Window: Alt + F, N
    New Private W indow: Alt + F, W
    O pen File: Alt + F, O
    C lose Tab: Alt + F, C
    Close Win d ow: Alt + F, D

    BTW, If you want to re-open the window you closed, the shortcut should be Ctrl+Shift+N

    • onoOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      I know what menu shortcuts are. As I already said, there is no close-window shortcut in the menu, and no D shortcut, either.

      If there is one in your Firefox menu, I guess someone must have removed it from the build in my version but forgotten to remove the corresponding key handling code.

      • janWilejan@kbin.social
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Oh. strange. When you open the file menu by pressing Alt + F, you get a slightly different set of options than when you open the file menu by pressing Alt and clicking File.

    • onoOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      That’s what I’m using as well. I wonder if its a quirk in Firefox ESR.

      • zeus ⁧ ⁧ ∽↯∼@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        nah, @fox pointed out that we’re all being idiots:

        you activated a shortcut, notice that the d on close window is underlined in the menu.

        • onoOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          1 year ago

          Please read my post again. (That was the first thing I checked.)

          • zeus ⁧ ⁧ ∽↯∼@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            nah he’s right, look
            image of the firefox file menu, showing close window highlighted

            the d in window is underlined. if you don’t have that, try setting keyboard accelerators visibility to always show (although it shouldn’t matter, as ffx is influenced by gtk settings)

            • onoOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              1 year ago

              Please stop insisting that I’m wrong. I’ve added a screen shot so you can see for yourself.

  • fox@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    you activated a shortcut, notice that the d on close window is underlined in the menu.

    • onoOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Notice that I already stated there is so such shortcut in the menu. Thus my surprise.

      • fox@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        curious, I just went to screenshot the menu and I noticed the option only appears when you open it with alt+f, but it is there for me.

        • onoOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Aha! Yes, I’m getting the same behavior here here. The Close Win̲dow option doesn’t show up when opening the menu with the mouse or arrow keys, but does show up when opening it with Alt+F. What a strange UI choice.

  • BendyLemmy@fedia.io
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    It seems odd that you would CLICK the menu and then use the keyboard. Firefox has 2 versions, the ‘mouse’ version is slightly cut down.

    Try opening the menu with:

    1. Keyboard (press Alt, then F).

    2. Mouse (you can press Alt, then CLICK the F)

    This is something I rarely use keyboard for, TBH. I use mouse gestures.

    I close a tab by drawing an ‘L’ and can re-open a tab by drawing an ‘L’ in reverse (bottom to top).

    A window by doing ‘X’ and re-opening a window with an ‘L’ in reverse but coming down again from the vertical.

    I must say, I find gestures (i.e. drawing shapes) much easier to remember - I use ten times more gestures than I remember keyboard shortcuts.

    Gesture

    • onoOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      It seems odd that you would CLICK the menu and then use the keyboard.

      As it turns out, different people have needs different from your own.

      And in this case, I stumbled upon the surprising behavior through the keyboard alone, by accident, due to poorly chosen adjacent key commands. I later used the mouse when investigating the menu’s contents.