Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

ctrl+v not working in KDE

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
stefaca
Posts: 40
Joined: 2010-10-17 21:55

ctrl+v not working in KDE

#1 Post by stefaca »

Hi,
I have a small problem with paste-ing text in all KDE applications. System info:

Code: Select all

Debian testing with kernel 5.10.0-7-amd64
KDE Plazma 5.20.5
Problem is that ctrl+c copies text, I can see that content is inside Clipboard but when I want to paste it with ctrl+v it is not working. Shortcut is OK, checked. Paste is tested in every app that I have: chrome, firefor, idea, kate, ... You name it. Paste is working with Shift+Insert but it is paint ih the ass to move fingers all over keyboard just to paste.

Key events are registered OK.

Code: Select all

KeyPress event, serial 28, synthetic NO, window 0x5400001,
    root 0x753, subw 0x0, time 326998, (102,36), root:(102,897),
    state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x5400001,
    root 0x753, subw 0x0, time 327542, (102,36), root:(102,897),
    state 0x14, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 bytes: (03) ""
    XmbLookupString gives 1 bytes: (03) ""
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x5400001,
    root 0x753, subw 0x0, time 327718, (102,36), root:(102,897),
    state 0x14, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 bytes: (03) ""
    XFilterEvent returns: False

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  83  0   0   0   32  0   4294967168 0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 28, synthetic NO, window 0x5400001,
    root 0x753, subw 0x0, time 329142, (102,36), root:(102,897),
    state 0x14, keycode 55 (keysym 0x76, v), same_screen YES,
    XLookupString gives 1 bytes: (16) ""
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x5400001,
    root 0x753, subw 0x0, time 329374, (102,36), root:(102,897),
    state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
What to do next?

mm3100
Posts: 337
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 14 times

Re: ctrl+v not working in KDE

#2 Post by mm3100 »

Are you in wayland session?

stefaca
Posts: 40
Joined: 2010-10-17 21:55

Re: ctrl+v not working in KDE

#3 Post by stefaca »

mm3100 wrote:Are you in wayland session?
Assume not by informations:

Code: Select all

stefaca@shredder:~$ loginctl 
SESSION  UID USER    SEAT  TTY
      1 1000 stefaca seat0 

1 sessions listed.
stefaca@shredder:~$ loginctl show-session 1 -p Type
Type=x11

stefaca
Posts: 40
Joined: 2010-10-17 21:55

Re: ctrl+v not working in KDE

#4 Post by stefaca »

Any ideas?

mm3100
Posts: 337
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 14 times

Re: ctrl+v not working in KDE

#5 Post by mm3100 »

Wait, I think I didn't read what you wrote properly. You said it works well with shift+insert?

Looking at shortcuts in KDE, they are both set for paste under edit.

Is it working with mouse copy/paste?, if yes, then your copying is working, just that shortcut ctrl+v is not. For that go to shortcuts in settings and check if it is set for paste.

It is possible it got overridden by something. In search bar type ctrl+v to see what is set for it. If it is for paste, then delete that shortcut and set it again. If it still isn't working, they to set to something else, like shift+v, just to test if it isn't some odd hardware issue on keyboard.

stefaca
Posts: 40
Joined: 2010-10-17 21:55

Re: ctrl+v not working in KDE

#6 Post by stefaca »

Checked and double checked. No other shortcut has ctrl+v assigned. Paste has 2 shortcuts: shift+insert which is working and ctrl+v which is not. And that is what is confusing me. Paste via mouse, right click>paste, works. Copy is not a problem. Even Clipper contains copied text. But, when I press ctrl+v nothing is happening. Just shift+insert. But it is pain in the ass because finger is on ctrl during copy process.

mm3100
Posts: 337
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 14 times

Re: ctrl+v not working in KDE

#7 Post by mm3100 »

Did you try to reassign paste to something else, and try to use ctrl+v to some other function that is working now. I don't know why it isn't working for you.

I looked at that log you posted before, and I don't see keyPress event for ctrl+v, just keyrelease event for it. Paste is activated on key press.

stefaca
Posts: 40
Joined: 2010-10-17 21:55

Re: ctrl+v not working in KDE

#8 Post by stefaca »

All events but crtl+v are detected with showkey -a. What a **** is happening with that combination? How system is not detecting it? I'm totally confuzed at the moment :cry:

I turned on keyboard layout preview. All buttons are working, layout register all BUT ctrl+v and alt+v. Like something is blocking v. Shift+v is also working.

mm3100
Posts: 337
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 14 times

Re: ctrl+v not working in KDE

#9 Post by mm3100 »

I had similar issue in one game I played, where I had to hold crtl+x and then move around with arrow keys, when I held those two it wouldn't detect right arrow key. In my case it is caused by keyboard hardware, where multi key press in some combination isn't working. It should however always work with simple combinations, such ctrl+v.

Now, you can try to check, if any other key is pressed all the time as well, that could somehow mess with press key signal. That is my guess at leat. But now you know what is the problem at least, and you can try to look up issues with it.

stefaca
Posts: 40
Joined: 2010-10-17 21:55

Re: ctrl+v not working in KDE

#10 Post by stefaca »

mm3100 wrote:I had similar issue in one game I played, where I had to hold crtl+x and then move around with arrow keys, when I held those two it wouldn't detect right arrow key. In my case it is caused by keyboard hardware, where multi key press in some combination isn't working. It should however always work with simple combinations, such ctrl+v.

Now, you can try to check, if any other key is pressed all the time as well, that could somehow mess with press key signal. That is my guess at leat. But now you know what is the problem at least, and you can try to look up issues with it.
WTF, I read some similar post. He assigned ctrl+~ for some other app, I assigned the same combo for yakuake. Just disabled that shortcut and now ctrl+v is working. What a mindfuck. On Gnome Shell I didn't have any of those issues. Now I need to think about new shortcut for yakuake but ctrl+~ was main shortcut for showing terminal for me for years.

mm3100
Posts: 337
Joined: 2020-10-21 21:39
Has thanked: 8 times
Been thanked: 14 times

Re: ctrl+v not working in KDE

#11 Post by mm3100 »

Hey mate, did you managed to solve it? I switched from Wayland to Xorg and now have same issue. I solved it by deleting khotkeysrc and kglobalshortcutsrc from .config and let KDE generate default one. Really odd thing that occurred. Looking at xev it seemed that ctrl+v was something odd.

Code: Select all

KeyPress event, serial 40, synthetic NO, window 0x7e00001,
    root 0x188, subw 0x0, time 22295396, (871,323), root:(871,352),
    state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

FocusOut event, serial 40, synthetic NO, window 0x7e00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 40, synthetic NO, window 0x7e00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 40, synthetic NO, window 0x0,
    keys:  2   0   0   0   32  0   4294967168 0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 40, synthetic NO, window 0x7e00001,
    root 0x188, subw 0x0, time 22295740, (871,323), root:(871,352),
    state 0x4, keycode 55 (keysym 0x76, v), same_screen YES,
    XLookupString gives 1 bytes: (16) ""
    XFilterEvent returns: False
    
KeyRelease event, serial 40, synthetic NO, window 0x7e00001,
    root 0x188, subw 0x0, time 22295772, (871,323), root:(871,352),
    state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
From there I can see that it detect ctl being pressed, but returns odd values for added v, only for it to confirm release of v and ctrl.

So for anyone in future who has same issue, go to shortcuts settings, and export your custom shortcuts for added applications, then go to .config and delete khotkeysrc and kglobalshortcutsrc. Log out and log back in, KDE should recreate them, if KDE fails to start you will have to restart. Then it will work normally again.

I have set up my shortcuts while in wayland session, and only ctrl+v stopped working when switched back to xorg. No clue what happen there.

Post Reply