Browse Source

deactivate Request entry on click Content area with focus event disabled

PHP-GTK3
yggverse 4 months ago
parent
commit
33c655534e
  1. 4
      src/Entity/Browser/Container/Page/Content/Gemtext.php
  2. 4
      src/Entity/Browser/Container/Page/Content/Plain.php

4
src/Entity/Browser/Container/Page/Content/Gemtext.php

@ -272,6 +272,10 @@ class Gemtext extends Markup @@ -272,6 +272,10 @@ class Gemtext extends Markup
\GdkEvent $event
): bool
{
// Markup container has focus event disabled (hidden cursor position)
// this solution deactivates Request entry on click Markup area
$this->content->page->container->tab->gtk->grab_focus();
return false;
}

4
src/Entity/Browser/Container/Page/Content/Plain.php

@ -35,6 +35,10 @@ class Plain extends Markup @@ -35,6 +35,10 @@ class Plain extends Markup
\GdkEvent $event
): bool
{
// Markup container has focus event disabled (hidden cursor position)
// this solution deactivates Request entry on click Markup area
$this->content->page->container->tab->gtk->grab_focus();
return false;
}
}
Loading…
Cancel
Save