Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl+Key shortcuts not working (Linux) #323

Open
beelze opened this issue Nov 5, 2018 · 9 comments
Open

Ctrl+Key shortcuts not working (Linux) #323

beelze opened this issue Nov 5, 2018 · 9 comments

Comments

@beelze
Copy link

beelze commented Nov 5, 2018

Just built from scrcpy-9999.ebuild. Ctrl+Key shortcuts not working, instead it acting like plain key is pressed (i.e. Ctrl+V entering v letter in input field).

@rom1v
Copy link
Collaborator

rom1v commented Nov 5, 2018

Related to #300?

It works for me on Debian 😕

@beelze
Copy link
Author

beelze commented Nov 6, 2018

No, it's a PC box. Is there any way to debug keypresses to help resolve an issue?

@rom1v
Copy link
Collaborator

rom1v commented Nov 6, 2018

If you can compile from sources, finding the guilty commit would help (since I cannot reproduce).

If v1.4 works, there are very few commits to test. Anyway you can git bisect.

@beelze
Copy link
Author

beelze commented Nov 15, 2018

Just prepared to bisecting or whatever, but decided to rebuild before and check again.

Well, there are some news: in fact, LCtrl-key generally working fine, but RCtrl+key – not. (Perhaps last time I've used only RCtrl). For instance, RCtrl+v produces v in input field; RCtrl+s produces s in input field and then opens recents.

Another problem: I've found that pasting stops on first non-latin[?] character. I.e. trying to paste abcЭЮЯ123 produces only abc

Funny problem: Almost all non-modifier keypresses are «doubled». I've tried to press aABbCC and got aaaABbbBcCCC in input field. Backspace and right/left arrow keys are «doubled» too.

BTW, is there any way to get device clipboard to computer?

@rom1v
Copy link
Collaborator

rom1v commented Nov 15, 2018

Well, there are some news: in fact, LCtrl-key generally working fine, but RCtrl+key – not.

That's not expected. RCtrl works for me.

Are you sure your RCtrl key works?

Another problem: I've found that pasting stops on first non-latin[?] character. I.e. trying to paste abcЭЮЯ123 produces only abc

Yes, that's "expected" (only ASCII chars are supported).

Funny problem: Almost all non-modifier keypresses are «doubled». I've tried to press aABbCC and got aaaABbbBcCCC in input field. Backspace and right/left arrow keys are «doubled» too.

Maybe you can help on this issue: #109 (comment). I'm not able to reproduce.

BTW, is there any way to get device clipboard to computer?

See #145.

@beelze
Copy link
Author

beelze commented Nov 15, 2018

Are you sure your RCtrl key works?

Absolutely. Everyday I'm using LCtrl+C but RCtrl+Ins, in particular. Here's xev output for pressing LCtrl+c and, immediately after, RCtrl+c, maybe it would be helpful:

KeymapNotify event, serial 26, synthetic NO, window 0x0,
    keys:  4294967200 0   0   0   32  0   64  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   

KeyPress event, serial 28, synthetic YES, window 0x8c00001,
    root 0x2a0, subw 0x0, time 112157148, (89,89), root:(2451,902),
    state 0x14, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 bytes: (03) "�"
    XmbLookupString gives 1 bytes: (03) "�"
    XFilterEvent returns: False

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  4294967200 0   0   0   32  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   0   0   

KeyRelease event, serial 28, synthetic YES, window 0x8c00001,
    root 0x2a0, subw 0x0, time 112157326, (89,89), root:(2451,902),
    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:  4294967200 0   0   0   0   0   64  0   0   0   0   0   0   2   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyPress event, serial 28, synthetic YES, window 0x8c00001,
    root 0x2a0, subw 0x0, time 112160340, (89,89), root:(2451,902),
    state 0x14, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 bytes: (03) "�"
    XmbLookupString gives 1 bytes: (03) "�"
    XFilterEvent returns: False

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  4294967200 0   0   0   0   0   0   0   0   0   0   0   0   2   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 28, synthetic YES, window 0x8c00001,
    root 0x2a0, subw 0x0, time 112160496, (89,89), root:(2451,902),
    state 0x14, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 bytes: (03) "�"
    XFilterEvent returns: False

Maybe you can help on this issue: #109 (comment). I'm not able to reproduce.

Thorougly checked, I've found that only alpha chars, arrows, Backspace, Del and Enter are «doubled». Digits and punctuation chars are not. Maybe it will help. Looks like a different problem.

@beelze
Copy link
Author

beelze commented Nov 16, 2018

That's not expected. RCtrl works for me.

As I mentioned previously, it isn't «not working at all».

RCtrl+s produces s in input field and then opens recents.

You may find this interesting and relevant.

I've checked Ctrl+key in openboardview and mpv (both libsdl2 dependent too), both L/RCtrl works fine. (Though I almost not looking into code)

@spvkgn
Copy link

spvkgn commented Aug 29, 2019

Same here in Ubuntu 18.04 (MATE Desktop) with v1.10 and prebuilt server. Can't paste clipboard - both LCtrl-v and RCtrl-v just produces v letter. And all other Ctrl-key not works as well.

@rom1v
Copy link
Collaborator

rom1v commented Oct 27, 2021

Does it still happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment