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
\GdkEvent $event \GdkEvent $event
): bool ): 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; return false;
} }

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

@ -35,6 +35,10 @@ class Plain extends Markup
\GdkEvent $event \GdkEvent $event
): bool ): 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; return false;
} }
} }
Loading…
Cancel
Save