enshort contains construction, drop debug print

This commit is contained in:
yggverse 2024-11-03 02:28:50 +02:00
parent 6a04692ad3
commit 07d952ea7e

View File

@ -60,8 +60,7 @@ impl Widget {
// to simply overwrite current request with new value // to simply overwrite current request with new value
// Note: // Note:
// * Custom GestureClick is not option here, as GTK Entry already has default one // * Custom GestureClick is not option here, as GTK Entry already has default one
println!("{:?}", state); if state.contains(StateFlags::ACTIVE | StateFlags::FOCUS_WITHIN) {
if state.contains(StateFlags::ACTIVE) && state.contains(StateFlags::FOCUS_WITHIN) {
// Continue on first focus event // Continue on first focus event
if this.selection_bounds().is_none() { if this.selection_bounds().is_none() {
this.select_region(0, this.text_length().into()); this.select_region(0, this.text_length().into());