From 07d952ea7e0b7682c6aaf22f4a375df9329c1ef8 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 3 Nov 2024 02:28:50 +0200 Subject: [PATCH] enshort contains construction, drop debug print --- .../browser/window/tab/item/page/navigation/request/widget.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/page/navigation/request/widget.rs b/src/app/browser/window/tab/item/page/navigation/request/widget.rs index 17a6f78d..39c6cf6d 100644 --- a/src/app/browser/window/tab/item/page/navigation/request/widget.rs +++ b/src/app/browser/window/tab/item/page/navigation/request/widget.rs @@ -60,8 +60,7 @@ impl Widget { // to simply overwrite current request with new value // Note: // * Custom GestureClick is not option here, as GTK Entry already has default one - println!("{:?}", state); - if state.contains(StateFlags::ACTIVE) && state.contains(StateFlags::FOCUS_WITHIN) { + if state.contains(StateFlags::ACTIVE | StateFlags::FOCUS_WITHIN) { // Continue on first focus event if this.selection_bounds().is_none() { this.select_region(0, this.text_length().into());