slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.57k stars 604 forks source link

LineEdit and TextEdit component can not use 'ctrl + v' to paste in caps lock mode #4221

Open ogoffart opened 10 months ago

ogoffart commented 10 months ago

As reported in https://github.com/slint-ui/slint/issues/4198

LineEdit and TextEdit component can not use 'ctrl + v' to paste in caps lock mode (Or ctrl + c, or ctrl + a, ...)

I could reproduce this on X11 with the winit backend in Slint 1.3 The Qt backend works well. It might have worked in Slint 1.2

tronical commented 9 months ago

The TextInput uses StandardShortcut::Paste, as created by KeyEvent::shortcut() -> Option<StandardShortcut>. It's looking for text.as_str() == 'v' and I guess that's V. Not sure though if this should be fixed in the winit backend (since it works with Qt).

ogoffart commented 9 months ago

slightly related: https://github.com/slint-ui/slint/issues/4498 and https://chat.slint.dev/public/pl/pmdrea74y7bh8ba7f1tzai4cjr