slint icon indicating copy to clipboard operation
slint copied to clipboard

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

Open ogoffart opened this issue 1 year ago • 2 comments

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

ogoffart avatar Dec 27 '23 07:12 ogoffart

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).

tronical avatar Feb 06 '24 13:02 tronical

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

ogoffart avatar Feb 06 '24 14:02 ogoffart