Selecting Text with text tool no longer changes layer
<!--
See our full bug reporting guidelines at https://inkscape.org/contribute/report-bugs/
Writing a good bug report will ensure we'll be able to help efficiently. 🙂
-->
#### Summary:
<!-- Summarize the issue/suggestion concisely: -->
Pasting text to a textbox does not work if a different, hidden layer is selected in the layer window.
#### Steps to reproduce:
<!-- Describe what you did (step-by-step) so we can reproduce: -->
You need an image with a hidden layer and a text box in a different, not hidden layer.
- Select the layer that is hidden
- Select the text tool
- Click into the textbox that is not hidden
- Try to paste something, nothing happens
- A warning is produced saying "Current layer is hidden. Unhide it to be able to draw on it."
#### What happened?
The text I want to paste in that textbox does not appear.
Instead it tells you that "Current layer is hidden. Unhide it to be able to draw on it.".
#### What should have happened?
It's reasonable to assume that if a user clicks into a textbox, actively sets the cursor somewhere and then pastes text that it should paste the text at the appropriate cursor position.
It should not care if another layer that just happens to be currently selected is hidden, because the textbox and its content itself are NOT hidden or inside of a hidden hierarchy and should thus be editable.
The hidden layer in the layer selection does not have any connection to the textbox you want to draw into so it should not prevent you from pasting text.
Sample attachments:
<!-- Attach the sample file(s) highlighting the issue, if appropriate. -->
#### Version info
<!--
Open 'Help > About' and click on the little bug icon in the bottom right corner that copies the debug information to your clipboard. For command line users, run 'inkscape --debug-info'.
For Inkscape 1.0.2 and older, please manually add the Inkscape Version and Operating System Version. The Inkscape version is listed in the About dialog. For command line users, run 'inkscape -V'
Paste the information in the empty space between the apostrophes below:
-->
```
Inkscape 1.4.2 (ebf0e940d0, 2025-05-08)
Compile (Run)
GLib version: 2.84.2
GTK version: 3.24.49 (3.24.49)
glibmm version: 2.66.8
gtkmm version: 3.24.10
libxml2 version: 2.14.3
libxslt version: 1.1.43
Cairo version: 1.18.4 (1.18.4)
Pango version: 1.56.3 (1.56.3)
HarfBuzz version: 11.2.1 (11.2.1)
OS version: EndeavourOS
```
<!--
❤️ Thank you for filling in a new bug report, we appreciate the help! ❤️
Please be patient while we try to find the time to look into your issue.
Remember that Inkscape is developed by volunteers in their spare time, we'll try our best to respond to all reports.
-->
<!--
Please be careful when/after writing # for example in logs, code, or versions of linux
- use inline code span - single backticks (`) before and after it, like this - `#1618`
- use multi-line code block - triple backticks (```) to fence/enclose console logs
- attach long logs as a text file.
-->
issue