Auto database selection (set active)

I found a little annoying the fact that databases are not auto-selected (automatically set as active, I mean) when I open their object tree or when I open a contained table.
In a typical scenario, I open DBeaver, I browse the tree until a table (my connection > Databases > my database > Tables > my table), view some data, then I want to run some SQL (CTRL+L to open SQL editor), I write down some code then I execute it (CTRL+Enter). Execution will fail because no database is selected. That can be fixed if the application assumes I want to operate on my database because I opened it in the tree view or because I clicked a table in it.
In a typical scenario, I open DBeaver, I browse the tree until a table (my connection > Databases > my database > Tables > my table), view some data, then I want to run some SQL (CTRL+L to open SQL editor), I write down some code then I execute it (CTRL+Enter). Execution will fail because no database is selected. That can be fixed if the application assumes I want to operate on my database because I opened it in the tree view or because I clicked a table in it.