# WebView - how to get the floating menu window focused ?

**URL:** <https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924>\
**Category:** Configuration Help & General Discussion\
**Tags:** floating-menu\
**Created:** [June 3, 2025, 8:14pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924 "2025-06-03T20:14:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Megalon](https://community.folivora.ai/user_avatar/community.folivora.ai/max_megalon/32/23811_2.png) [@Max\_Megalon](https://community.folivora.ai/u/Max_Megalon)\
**Post date:** [June 3, 2025, 8:14pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/1 "2025-06-03T20:14:41Z")

</div>

Hallo,

when I load my Webview the window itself does not get **focused** / is selected.  
(see screen)

I need to _mouse left-click_ somewhere inside to get that focus.  
If I do **not** do that all editor commands like CMD+N will go to Finder (or BTT itself) and not to my Editor.

I have tested that with other simpler Webviews - same issue - the window is not focused (so it is not related to the Code Mirror editor...)

somehow I fail to find a way to fix that.  
Any hints would be welcome...

Thx,  
Christian

 ![WebView focus](https://community.folivora.ai/uploads/default/original/3X/d/7/d7d7d5a7f3891586abc5769da5bf4afaf213a9c6.jpeg)

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [June 3, 2025, 8:22pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/2 "2025-06-03T20:22:09Z")

</div>

You can control the window focus via the action:

 ![image](https://community.folivora.ai/uploads/default/original/3X/f/d/fd168a3ce11a3a4c277f95781f3a294a804341b3.jpeg)

However that doesn't necessarily focus your text fields. You could e.g. add the html autofocus attribute to that

If you'd rather set the focus on the menu-level you can also do that:

 ![image](https://community.folivora.ai/uploads/default/original/3X/d/6/d63464e0a6ea8cbbc2c287aef13600bc9e171ed9.jpeg)

---

<div class="post-metadata">

**Author:** ![Max\_Megalon](https://community.folivora.ai/user_avatar/community.folivora.ai/max_megalon/32/23811_2.png) [@Max\_Megalon](https://community.folivora.ai/u/Max_Megalon)\
**Post date:** [June 3, 2025, 8:39pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/3 "2025-06-03T20:39:54Z")

</div>

Thanks Andreas,

I have used now a simple WebView (display only text) for testing.  
and it did not work...

maybe there is an issue with window levels ?

 ![Menu window level](https://community.folivora.ai/uploads/default/original/3X/2/b/2b1f80298b4e2b8bf5020d8fab52babf4f8ab34d.jpeg)

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [June 3, 2025, 8:41pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/4 "2025-06-03T20:41:03Z")

</div>

no, most likely you just don't have something that can focus automatically.

For example try this, it should automatically focus:

```auto
<textarea autofocus id="focusTextArea" rows="4" cols="50" placeholder="Enter your text here..."></textarea>

```

You can also press the tab key to check whether your menu has focus

---

<div class="post-metadata">

**Author:** ![Max\_Megalon](https://community.folivora.ai/user_avatar/community.folivora.ai/max_megalon/32/23811_2.png) [@Max\_Megalon](https://community.folivora.ai/u/Max_Megalon)\
**Post date:** [June 3, 2025, 8:51pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/5 "2025-06-03T20:51:51Z")

</div>

Hi,

I have removed the Editor completely and it is still not focused.

here the menu:

```auto
[
  {
    "BTTActionCategory" : 0,
    "BTTLastUpdatedAt" : 1748983575.040756,
    "BTTTriggerType" : 767,
    "BTTTriggerTypeDescriptionReadOnly" : "Floating Menu",
    "BTTTriggerClass" : "BTTTriggerTypeFloatingMenu",
    "BTTUUID" : "00960D90-33F1-4DD5-8C29-1B50FDDE8E35",
    "BTTPredefinedActionType" : 366,
    "BTTPredefinedActionName" : "Empty Placeholder",
    "BTTAdditionalConfiguration" : "Floating Menu: Text Editor",
    "BTTEnabled" : 1,
    "BTTOrder" : 1,
    "BTTTriggerName" : "Floating Menu: Text Editor",
    "BTTMenuItems" : [
      {
        "BTTActionCategory" : 0,
        "BTTLastUpdatedAt" : 1748983292.973022,
        "BTTTriggerType" : 773,
        "BTTTriggerTypeDescription" : "Standard Item",
        "BTTTriggerParentUUID" : "00960D90-33F1-4DD5-8C29-1B50FDDE8E35",
        "BTTTriggerClass" : "BTTTriggerTypeFloatingMenu",
        "BTTUUID" : "CA6B1904-B0F8-4CDD-A831-58BBE253A0CB",
        "BTTPredefinedActionType" : 366,
        "BTTPredefinedActionName" : "Empty Placeholder",
        "BTTAdditionalConfiguration" : "Menu Item: Titel",
        "BTTEnabled" : 1,
        "BTTOrder" : 0,
        "BTTTriggerName" : "Menu Item: Titel",
        "BTTMenuItemActions" : [
          {
            "BTTActionCategory" : 0,
            "BTTLastUpdatedAt" : 1748957948.4637771,
            "BTTTriggerParentUUID" : "CA6B1904-B0F8-4CDD-A831-58BBE253A0CB",
            "BTTIsPureAction" : true,
            "BTTTriggerClass" : "BTTTriggerTypeFloatingMenu",
            "BTTUUID" : "A5D95FA3-E90E-41F4-B499-1F5AC7FC7F16",
            "BTTPredefinedActionType" : 490,
            "BTTPredefinedActionName" : "Comment (Does Nothing Else)",
            "BTTGenericActionConfig" : "----- caution: closes Editor without saving !",
            "BTTEnabled" : 1,
            "BTTOrder" : 0,
            "BTTMenuAvailability" : 0,
            "BTTMenuName" : "A5D95FA3-E90E-41F4-B499-1F5AC7FC7F16"
          },
          {
            "BTTActionCategory" : 0,
            "BTTLastUpdatedAt" : 1748957911.146302,
            "BTTTriggerParentUUID" : "CA6B1904-B0F8-4CDD-A831-58BBE253A0CB",
            "BTTTriggerClass" : "BTTTriggerTypeFloatingMenu",
            "BTTUUID" : "49826C3D-C95B-48EE-9638-EF9E1D64E940",
            "BTTPredefinedActionType" : 387,
            "BTTPredefinedActionName" : "Hide Floating Menu",
            "BTTAdditionalActionData" : {
              "BTTMenuActionMenuID" : "Text Editor"
            },
            "BTTEnabled" : 1,
            "BTTOrder" : 1,
            "BTTMenuConfig" : {

            },
            "BTTMenuAvailability" : 0,
            "BTTMenuName" : "1AEA4003-A5DF-430C-BCB7-57E17689A002"
          }
        ],
        "BTTMenuConfig" : {
          "BTTMenuCategoryPosition" : 0,
          "BTTMenuCategoryBorder" : 0,
          "BTTMenuItemBorderColorDark" : "255.000, 255.000, 255.000, 255.000",
          "BTTMenuItemIconColor1" : "255.000, 255.000, 255.000, 255.000",
          "BTTMenuItemBackgroundColor" : "29.999996, 29.999996, 29.999996, 255.000000",
          "BTTMenuCategoryItemVisibility" : 0,
          "BTTMenuItemBackgroundType" : 4,
          "BTTMenuItemMaxHeight" : 35,
          "BTTMenuCategoryMenuVisibility" : 0,
          "BTTMenuHoverEndAnimationDuration" : 0.14999999999999999,
          "BTTMenuItemMaxWidth" : 1395,
          "BTTMenuCategoryItemIcon" : 0,
          "BTTMenuItemBorderWidth" : 0,
          "BTTMenuCategoryShadow" : 0,
          "BTTMenuCategoryItemBehavior" : 0,
          "BTTMenuCategoryOnlyShowIf" : 0,
          "BTTMenuItemCornerRadius" : 5,
          "BTTMenuCategoryModifiers" : 0,
          "BTTMenuItemBorderColorHover" : "192.288, 192.292, 192.290, 255.000",
          "BTTMenuCategoryItemSpacing" : 0,
          "BTTLastChangeUUID" : "C91B38E2-AA30-4B10-93A4-452054ACEED1",
          "BTTMenuCategoryMenuOpacity" : 0,
          "BTTMenuItemBorderColor" : "94.492, 94.494, 94.493, 255.000",
          "BTTMenuCategorySize" : 0,
          "BTTMenuItemMinHeight" : 35,
          "BTTMenuItemBackgroundColorDark" : "108.442, 96.000, 190.435, 166.991",
          "BTTMenuItemVisibleWhileActive" : 1,
          "BTTMenuElementIdentifier" : "Titel",
          "BTTMenuItemVisibleWhileInactive" : 1,
          "BTTMenuItemMinWidth" : 1395,
          "BTTMenuItemBackgroundTypeDark" : 4,
          "BTTMenuAttributedText" : "{\\rtf1\\ansi\\ansicpg1252\\cocoartf2761\n\\cocoatextscaling0\\cocoaplatform0{\\fonttbl\\f0\\fnil\\fcharset0 SFPro-Regular;}\n{\\colortbl;\\red255\\green255\\blue255;\\red255\\green255\\blue255;}\n{\\*\\expandedcolortbl;;\\cssrgb\\c100000\\c100000\\c100000;}\n\\pard\\tx560\\tx1120\\tx1680\\tx2240\\tx2800\\tx3360\\tx3920\\tx4480\\tx5040\\tx5600\\tx6160\\tx6720\\pardirnatural\\qc\\partightenfactor0\n\n\\f0\\fs24 \\cf2 Java-Script \/ HTML Editor}",
          "BTTMenuCategorySpacing" : 0,
          "BTTMenuItemBorderColorHoverDark" : "255.000, 255.000, 255.000, 255.000",
          "BTTMenuAppearanceStyle" : 0,
          "BTTMenuItemBackgroundColorHover" : "29.999996, 29.999996, 29.999996, 255.000000",
          "BTTMenuAlwaysUseLightMode" : 1,
          "BTTMenuCategoryBackground" : 0,
          "BTTMenuCategoryItemSizing" : 0,
          "BTTMenuItemSelectedTab" : 0,
          "BTTMenuAttributedTextDark" : "{\\rtf1\\ansi\\ansicpg1252\\cocoartf2761\n\\cocoatextscaling0\\cocoaplatform0{\\fonttbl\\f0\\fswiss\\fcharset0 Helvetica;}\n{\\colortbl;\\red255\\green255\\blue255;}\n{\\*\\expandedcolortbl;;}\n\\pard\\tx560\\tx1120\\tx1680\\tx2240\\tx2800\\tx3360\\tx3920\\tx4480\\tx5040\\tx5600\\tx6160\\tx6720\\pardirnatural\\partightenfactor0\n\n\\f0\\fs24 \\cf0 Multi Selection Dummy Text - You can change the formatting for multiple items at the same time, but not the text.}",
          "BTTMenuCategoryResizeOnHover" : 0,
          "BTTMenuHoverStartAnimationDuration" : 0.14999999999999999,
          "BTTMenuItemBackgroundColorHoverDark" : "90.000, 90.000, 180.000, 166.991",
          "BTTMenuUseStyleForSubmenu" : 1,
          "BTTMenuCategoryZIndex" : 0
        },
        "BTTMenuAvailability" : 0,
        "BTTMenuName" : "Titel",
        "BTTGestureNotes" : "Standard Item"
      },
      {
        "BTTActionCategory" : 0,
        "BTTLastUpdatedAt" : 1748983459.7603941,
        "BTTTriggerType" : 778,
        "BTTTriggerTypeDescriptionReadOnly" : "Web View \/ HTML Item",
        "BTTTriggerTypeDescription" : "Standard Item",
        "BTTTriggerParentUUID" : "00960D90-33F1-4DD5-8C29-1B50FDDE8E35",
        "BTTTriggerClass" : "BTTTriggerTypeFloatingMenu",
        "BTTUUID" : "F8B1F9BB-69D2-4049-A49B-B255A32BAB30",
        "BTTEnabled" : 1,
        "BTTOrder" : 2,
        "BTTTriggerName" : "Webview Menu Item: no-name-F8B1F9B",
        "BTTMenuConfig" : {
          "BTTMenuHoverStartAnimationDuration" : 0.14999999999999999,
          "BTTMenuCategoryZIndex" : 0,
          "BTTMenuItemBorderColorDark" : "255.000, 255.000, 255.000, 255.000",
          "BTTMenuItemIconColor1" : "255.000, 255.000, 255.000, 255.000",
          "BTTMenuItemBackgroundColor" : "0.000, 0.000, 0.000, 255.000",
          "BTTMenuCategoryItemVisibility" : 0,
          "BTTMenuItemBackgroundType" : 4,
          "BTTMenuItemMaxHeight" : 500,
          "BTTMenuCategoryMenuVisibility" : 0,
          "BTTMenuHoverEndAnimationDuration" : 0.14999999999999999,
          "BTTMenuItemMaxWidth" : 500,
          "BTTMenuCategoryItemIcon" : 0,
          "BTTMenuItemBorderWidth" : 1,
          "BTTMenuCategoryShadow" : 0,
          "BTTMenuCategoryItemBehavior" : 0,
          "BTTMenuCategoryOnlyShowIf" : 0,
          "BTTMenuItemCornerRadius" : 5,
          "BTTMenuCategoryModifiers" : 0,
          "BTTMenuItemBorderColorHover" : "192.288, 192.292, 192.290, 255.000",
          "BTTMenuCategoryItemSpacing" : 0,
          "BTTLastChangeUUID" : "8AFD3E6E-C6D8-4BAA-B04F-DDB59714E35C",
          "BTTMenuCategoryMenuOpacity" : 0,
          "BTTMenuItemBorderColor" : "94.492, 94.494, 94.493, 255.000",
          "BTTMenuCategorySize" : 0,
          "BTTMenuItemMinHeight" : 500,
          "BTTMenuItemBackgroundColorDark" : "108.442, 96.000, 190.435, 166.991",
          "BTTMenuItemVisibleWhileActive" : 1,
          "BTTMenuItemVisibleWhileInactive" : 1,
          "BTTMenuItemMinWidth" : 500,
          "BTTMenuItemBackgroundTypeDark" : 4,
          "BTTMenuAttributedText" : "{\\rtf1\\ansi\\ansicpg1252\\cocoartf2761\n\\cocoatextscaling0\\cocoaplatform0{\\fonttbl\\f0\\fnil\\fcharset0 HelveticaNeue;}\n{\\colortbl;\\red255\\green255\\blue255;\\red255\\green255\\blue255;}\n{\\*\\expandedcolortbl;;\\cssrgb\\c100000\\c100000\\c100000;}\n\\deftab720\n\\pard\\pardeftab720\\qc\\partightenfactor0\n\n\\f0\\fs44 \\cf2 \\expnd0\\expndtw0\\kerning0\n.}",
          "BTTMenuCategorySpacing" : 0,
          "BTTMenuItemBorderColorHoverDark" : "255.000, 255.000, 255.000, 255.000",
          "BTTMenuItemText" : "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n <title>Hello World WebView<\/title>\n <style>\n body {\n font-family: sans-serif;\n padding: 2rem;\n background-color: #f0f0f0;\n color: #333;\n }\n <\/style>\n<\/head>\n<body>\n <h1>Hello World 👋<\/h1>\n <p>Dies ist eine einfache WebView mit Textinhalt.<\/p>\n<\/body>\n<\/html>",
          "BTTMenuAppearanceStyle" : 0,
          "BTTMenuItemBackgroundColorHover" : "0.000, 0.000, 0.000, 0.000",
          "BTTMenuAlwaysUseLightMode" : 1,
          "BTTMenuCategoryBackground" : 0,
          "BTTMenuCategoryItemSizing" : 1,
          "BTTMenuItemSelectedTab" : 0,
          "BTTMenuCategoryResizeOnHover" : 0,
          "BTTMenuCategoryBorder" : 0,
          "BTTMenuCategoryItemPositioning" : 0,
          "BTTMenuItemBackgroundColorHoverDark" : "90.000, 90.000, 180.000, 166.991",
          "BTTMenuCategoryPosition" : 0,
          "BTTMenuUseStyleForSubmenu" : 1
        },
        "BTTMenuAvailability" : 0,
        "BTTMenuName" : "no-name-F8B1F9B",
        "BTTGestureNotes" : "Standard Item"
      },
      {
        "BTTActionCategory" : 0,
        "BTTLastUpdatedAt" : 1748983463.501955,
        "BTTTriggerType" : 773,
        "BTTTriggerTypeDescription" : "Standard Item",
        "BTTTriggerParentUUID" : "00960D90-33F1-4DD5-8C29-1B50FDDE8E35",
        "BTTTriggerClass" : "BTTTriggerTypeFloatingMenu",
        "BTTUUID" : "4C533059-CBD5-41B9-9668-3E3A613D4AAD",
        "BTTEnabled" : 1,
        "BTTOrder" : 3,
        "BTTTriggerName" : "Menu Item: .",
        "BTTMenuConfig" : {
          "BTTMenuCategoryZIndex" : 0,
          "BTTMenuItemBorderColorDark" : "255.000, 255.000, 255.000, 255.000",
          "BTTMenuItemIconColor1" : "255.000, 255.000, 255.000, 255.000",
          "BTTMenuItemBackgroundColor" : "0.000, 0.000, 0.000, 255.000",
          "BTTMenuCategoryItemVisibility" : 0,
          "BTTMenuItemBackgroundType" : 4,
          "BTTMenuItemMaxHeight" : 100,
          "BTTMenuCategoryMenuVisibility" : 0,
          "BTTMenuHoverEndAnimationDuration" : 0.14999999999999999,
          "BTTMenuItemMaxWidth" : 100,
          "BTTMenuCategoryItemIcon" : 0,
          "BTTMenuItemBorderWidth" : 1,
          "BTTMenuCategoryShadow" : 0,
          "BTTMenuCategoryItemBehavior" : 0,
          "BTTMenuCategoryOnlyShowIf" : 0,
          "BTTMenuItemCornerRadius" : 5,
          "BTTMenuCategoryModifiers" : 0,
          "BTTMenuItemBorderColorHover" : "192.288, 192.292, 192.290, 255.000",
          "BTTMenuCategoryItemSpacing" : 0,
          "BTTLastChangeUUID" : "6A487B7C-8D9B-4AA0-98FC-3F0B45EEFED1",
          "BTTMenuCategoryMenuOpacity" : 0,
          "BTTMenuItemBorderColor" : "94.492, 94.494, 94.493, 255.000",
          "BTTMenuCategorySize" : 0,
          "BTTMenuItemMinHeight" : 100,
          "BTTMenuItemBackgroundColorDark" : "108.442, 96.000, 190.435, 166.991",
          "BTTMenuItemVisibleWhileActive" : 1,
          "BTTMenuElementIdentifier" : ".",
          "BTTMenuItemVisibleWhileInactive" : 1,
          "BTTMenuItemMinWidth" : 100,
          "BTTMenuItemBackgroundTypeDark" : 4,
          "BTTMenuAttributedText" : "{\\rtf1\\ansi\\ansicpg1252\\cocoartf2761\n\\cocoatextscaling0\\cocoaplatform0{\\fonttbl\\f0\\fnil\\fcharset0 HelveticaNeue;}\n{\\colortbl;\\red255\\green255\\blue255;\\red255\\green255\\blue255;}\n{\\*\\expandedcolortbl;;\\cssrgb\\c100000\\c100000\\c100000;}\n\\deftab720\n\\pard\\pardeftab720\\qc\\partightenfactor0\n\n\\f0\\fs44 \\cf2 \\expnd0\\expndtw0\\kerning0\nTest}",
          "BTTMenuCategorySpacing" : 0,
          "BTTMenuItemBorderColorHoverDark" : "255.000, 255.000, 255.000, 255.000",
          "BTTMenuAppearanceStyle" : 0,
          "BTTMenuItemBackgroundColorHover" : "0.000, 0.000, 0.000, 0.000",
          "BTTMenuAlwaysUseLightMode" : 1,
          "BTTMenuCategoryBackground" : 0,
          "BTTMenuCategoryItemSizing" : 1,
          "BTTMenuItemSelectedTab" : 0,
          "BTTMenuCategoryResizeOnHover" : 0,
          "BTTMenuCategoryBorder" : 0,
          "BTTMenuCategoryPosition" : 0,
          "BTTMenuHoverStartAnimationDuration" : 0.14999999999999999,
          "BTTMenuItemBackgroundColorHoverDark" : "90.000, 90.000, 180.000, 166.991",
          "BTTMenuUseStyleForSubmenu" : 1
        },
        "BTTMenuAvailability" : 0,
        "BTTMenuName" : ".",
        "BTTGestureNotes" : "Standard Item"
      }
    ],
    "BTTFloatingMenuRenderedPreview" : "iVBORw0KGgoAAAANSUhEUgAAAMgAAABNCAYAAADjJSv1AAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAABIAAAAAQABiQoAAAV9AAOgAQADAAAAAQABAACgAgAEAAAAAQAAAMigAwAEAAAAAQAAAE0AAAAAKrPyfgAAAAlwSFlzAAALEwAACwMBSliOSQAABWJJREFUeAHtmjtPI1cYhs+YGcxFIC5aISFAKA1BpKfbYtv9Ffk3KdPkX6RLg5R0UQqqFClSIO0SJCNiA+IWsPEt33e0Bi+Ow05k49fZZ6SxZ86cOfPqec87Z27J+vr6V4VC4ev7+_tXIYS2zUxDINBut0OSJD0te7lPT7c9rd+p9091YwP8DISAZSHUarVfT09Pv7cGK6mB_8YW3k5OTg7kADTSS6BYLMZC7+TNZjP4uv_75MHw8larFdyciYmJOHtZo9GI9bIsi9u8ju_XKY8N8DNwAubJhjX6o81Zaoa8dTOYhkPAO_zW1tZD42dnZ2F1dTVUq9XY0efm5sLd3V2oVCphfn4+zMzMxAB5iOwsFrz+5uZm8JD4PnZ2C4eHh+Hi4iKG5qFhFgZCoGsk91AspHZWalhhOpDWaaSHgI8KNzc3DyOFXcqGUqkUfMT2zu6GXF5ehnq9HgPhgfKRYmFhIW738JycnMRRxUcP3+5tdBnZc0wK_juBD1wL1oIHpJ2sra39ZNDf2ErCSPII1kBVba1qTBYeS_99yeFa_ab9H1gnr1nteNPhXLvZfqgXO3ln2Tu+B8Drdcr8v7P8dH8vZxoOAfPhl+Pj4++s9SxdXFysHx0deVog3sXbzvAtu8xpXF9fd5U+v2gjRnt2dvYHu0_43Tr1syNzZ1TwyycPCdPoCdioXTIV0YzUzHx9dXVV6D5DjV7i6BUYlylTMemXP3kmu1eYsGC9t8uin20_b4Np_Aj4JZbPIbWheoZw9DpoTB4g9W7tX2L7GdLEHwlmNj87gvRviS0KBGJKFISgAQKKBAiIoitokiFAQHJYsbKyEnZ2duK7Cn+K5O8mlpaWeOSag+G4VeUaOYdj_hJvd3c3bGxsxHcXHhB_0be3txdf+uVoiqpjQoCA5DDq_Pw8vqTb3t4O_vh3eno62BNA3mjnYDhuVQlIDsdub2_D_v5+_CTE31t4QDwo_uab6f9JgIDk8NU_Bzk4OMixB1XHnQA36ePuIPqHSoCADBUvjY87AQIyHAf5rm04XF+8Ve5B+iC3T0aa9sHiu6mpKWf0yR0+TdOGfbB4Zvtw8unDdpyKCUgft_wrW+vo31pI_rCw5OHUKpfLJ9Zsnn36qKB41AQwsb8DiT2+PbX3HO+tSl5OPuJ88qjTXwJbRk0gr_Gj1vuix_cvc+2APnO59KLkdQ6G8TpeoESQAAERNAVJOgQIiI4XKBEkQEAETUGSDgECouMFSgQJEBBBU5CkQ4CA6HiBEkECBETQFCTpECAgOl6gRJAAARE0BUk6BAiIjhcoESRAQARNQZIOAQKi4wVKBAkQEEFTkKRDgIDoeIESQQIERNAUJOkQICA6XqBEkAABETQFSToECIiOFygRJEBABE1Bkg4BAqLjBUoECRAQQVOQpEOAgOh4gRJBAgRE0BQk6RAgIDpeoESQAAERNAVJOgQIiI4XKBEkQEAETUGSDgECouMFSgQJEBBBU5CkQ4CA6HiBEkECBETQFCTpECAgOl6gRJAAARE0BUk6BAiIjhcoESRAQARNQZIOAQKi4wVKBAkQEEFTkKRDgIDoeIESQQIERNAUJOkQICA6XqBEkAABETQFSToECIiOFygRJEBABE1Bkg4BAqLjBUoECRAQQVOQpEOAgOh4gRJBAgRE0BQk6RAgIDpeoESQAAERNAVJOgQIiI4XKBEkUEiSRFCWhCQHAxwJK0YnIq3Vau+yLPui3W6PToXgkY1Jq1Ao1EwaIRH054UkJcny8vKXxWLxjY0kJORj6n+Vy+Xf6vU6XD7m8rms+e3Hn52z4ytb8ZnO8Gi_A8oeV1n6jAh4Lio2l_4G4kxdB2DhH0cAAAAASUVORK5CYII=",
    "BTTMenuConfig" : {
      "BTTMenuBringToFrontOnHover" : 0,
      "BTTMenuOnlyUpdatePositionOnExplicitRequest" : 1,
      "BTTMenuVerticalSpacing" : 0,
      "BTTMenuAnchorRelation" : 0,
      "BTTMenuItemBackgroundColor" : "33.000000, 33.000000, 33.000000, 255.000000",
      "BTTMenuOffsetXUnit" : 0,
      "BTTMenuCategoryItemVisibility" : 0,
      "BTTMenuSelectedTab" : 0,
      "BTTMenuPositioningType" : 1,
      "BTTMenuItemBorderWidth" : 0,
      "BTTMenuCategoryResizeOnHover" : 0,
      "BTTMenuPositionRelativeTo" : 3,
      "BTTMenuCategoryOnlyShowIf" : 0,
      "BTTMenuCategoryModifiers" : 0,
      "BTTMenuOffsetX" : 50,
      "BTTMenuOffsetY" : -50,
      "BTTMenuItemShadowEnabled" : 1,
      "BTTMenuItemCornerRadius" : 10,
      "BTTMenuFrameWidth" : 1400,
      "BTTMenuFrameHeight" : 925,
      "BTTMenuCategoryShadow" : 0,
      "BTTMenuItemBorderColor" : "33.110, 33.111, 33.110, 255.000",
      "BTTMenuCategoryBackground" : 0,
      "BTTMenuScreenUUID" : "37D8832A-2D66-02CA-B9F7-8F30A301B230",
      "BTTMenuItemPaddingTop" : 1,
      "BTTMenuCategoryItemBehavior" : 0,
      "BTTMenuItemSelectedTab" : 0,
      "BTTMenuCategoryZIndex" : 0,
      "BTTMenuUseStyleForSubmenu" : 1,
      "BTTMenuCategoryItemSpacing" : 0,
      "BTTMenuItemScriptActive" : 0,
      "BTTMenuVisibility" : 1,
      "BTTMenuItemsUseModifierModes" : false,
      "BTTMenuCategoryMenuOpacity" : 0,
      "BTTMenuItemBlurredBackground" : 0,
      "BTTMenuCloseOnOutsideClick" : 0,
      "BTTMenuLayoutDirection" : 0,
      "BTTMenuScriptSettings" : {
        "BTTScriptType" : 3,
        "BTTAppleScriptString" : "(async ()=> {\n\n \/\/ let result = await set_string_variable({variable_name: 'FlipText', to: 'Text Editor with some test string'});\n\n returnToBTT(\"{}\");\n\n})();",
        "BTTScriptLocation" : 0,
        "BTTAppleScriptUsePath" : false,
        "BTTJavaScriptUseIsolatedContext" : false
      },
      "BTTMenuItemBackgroundType" : 0,
      "BTTMenuItemPaddingLeft" : 0,
      "BTTMenuTitleBarStyle" : 2,
      "BTTMenuItemBackgroundColorHover" : "33.000000, 33.000000, 33.000000, 255.000000",
      "BTTMenuHorizontalSpacing" : 0,
      "BTTMenuCategoryMenuVisibility" : 0,
      "BTTMenuWindowLevel" : 3,
      "BTTMenuCategoryBorder" : 0,
      "BTTMenuItemPaddingRight" : 0,
      "BTTMenuModifierMode" : 3,
      "BTTMenuSizingBehavior" : 0,
      "BTTMenuCloseAfterAction" : 0,
      "BTTMenuWindowResizable" : 0,
      "BTTMenuAnchorMenu" : 0,
      "BTTMenuShowIfWindowLevelEqualsEnabled" : 0,
      "BTTMenuCategoryItemSizing" : 0,
      "BTTMenuAppearanceStyle" : 0,
      "BTTMenuItemBorderColorHover" : "66.432, 66.434, 66.433, 255.000",
      "BTTMenuAvailability" : 1,
      "BTTMenuStealKeyboardFocusOnShow" : 1,
      "BTTLastChangeUUID" : "A1E3FC7F-2D12-4345-8BB8-262DFC3A3EA0",
      "BTTMenuCategorySpacing" : 0,
      "BTTMenuElementIdentifier" : "Text Editor",
      "BTTMenuCategoryPosition" : 0,
      "BTTMenuItemPaddingBottom" : 1,
      "BTTMenuAlwaysUseLightMode" : 1,
      "BTTMenuCategoryItemIcon" : 0,
      "BTTMenuOffsetYUnit" : 0,
      "BTTMenuCategorySize" : 0
    },
    "BTTMenuAvailability" : 1,
    "BTTMenuName" : "Text Editor"
  }
]

```

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [June 3, 2025, 8:55pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/6 "2025-06-03T20:55:42Z")

</div>

> [@Andreas\_Hegenberg](#):
>
> ```auto
> <textarea autofocus id="focusTextArea" rows="4" cols="50" placeholder="Enter your text here..."></textarea>
> 
> ```

I tried your menu, but it focuses fine here once i add a focusable element (or tab through the items). However the window buttons don't always get colored in floating menus, this is hard to solve, but doesn't matter for keyboard focus

---

<div class="post-metadata">

**Author:** ![Max\_Megalon](https://community.folivora.ai/user_avatar/community.folivora.ai/max_megalon/32/23811_2.png) [@Max\_Megalon](https://community.folivora.ai/u/Max_Megalon)\
**Post date:** [June 3, 2025, 9:07pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/7 "2025-06-03T21:07:27Z")

</div>

> [@Andreas\_Hegenberg](#):
>
> `<textarea autofocus id="focusTextArea" rows="4" cols="50" placeholder="Enter your text here..."></textarea>`

Andreas,  
that focuses the textarea, it is fine

 ![Focus](https://community.folivora.ai/uploads/default/original/3X/7/8/789a08cc2321063d0e2d26040fff1b8d91e52fdb.jpeg)

but

I need to have it like this:

 ![click](https://community.folivora.ai/uploads/default/original/3X/b/e/be269e31f2bb3f48fa0c040d07de884609829fe8.jpeg)

For the time I will put a workarround in place add some actions move the mouse and click somewhere inside. (not that nice but it is works)

Thx,  
Christian

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [June 3, 2025, 9:09pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/8 "2025-06-03T21:09:14Z")

</div>

is there a reason you need this? It'd require a different window behavior, which doesn't work for most other floating menu use cases and is pretty specific

It should only affect the color of the window buttons or does it do something else in your case?

---

<div class="post-metadata">

**Author:** ![Max\_Megalon](https://community.folivora.ai/user_avatar/community.folivora.ai/max_megalon/32/23811_2.png) [@Max\_Megalon](https://community.folivora.ai/u/Max_Megalon)\
**Post date:** [June 3, 2025, 9:15pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/9 "2025-06-03T21:15:34Z")

</div>

Yes, if that webview is not focused in that way, a keyboard shortcut like cmd+n will not go to editor, but to the finder or BTT.  
I will check tomorrow with GPT…but the workaround works…  
Thx so far, Christian

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [June 3, 2025, 9:18pm UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/10 "2025-06-03T21:18:01Z")

</div>

mhh I don't think that's possible because if the text area gets focus it means the BTT / the floating menu has keyboard focus

I also tried by loading some more complex editors like [https://codepen.io/pen/](https://codepen.io/pen/) which also seems to get keyboard focus fine here (typing text, cmd+a etc.)

cmd+n and other BTT shortcuts will in general be problematic because the floating windows don't have their own menubar, they use the same as BTT does when focused. Maybe this is something that I could look into.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [June 11, 2025, 11:50am UTC](https://community.folivora.ai/t/webview-how-to-get-the-floating-menu-window-focused/43924/11 "2025-06-11T11:50:20Z")

</div>

I fixed some focus related things in 5.460 alpha, maybe that also helps in you case!
