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

Broken keys- Numpad Enter behaves like spacebar - Workaround posted #1655

Closed
kartagis opened this issue Oct 5, 2015 · 17 comments
Closed

Broken keys- Numpad Enter behaves like spacebar - Workaround posted #1655

kartagis opened this issue Oct 5, 2015 · 17 comments

Comments

@kartagis
Copy link
Contributor

kartagis commented Oct 5, 2015

Hi,

I would like to report that with revision: git-5475-g9a195de, Enter key on the numeric pad acts like spacebar, and Ctrl+W prints a literal W.

@ctrlaltca
Copy link
Contributor

Can i ask your OS and Qt version please?

@kartagis
Copy link
Contributor Author

kartagis commented Oct 5, 2015

Ubuntu 14.04 and Qt4

@ctrlaltca
Copy link
Contributor

I suppose you mean ubuntu 14.10. It's known that ubuntu can have problems with qt applications shortcuts, due to the way they try to integrate them. The relevant bug should be: https://bugs.launchpad.net/appmenu-qt5/+bug/1380702
Afaik there are some known workarounds, but your mileage may vary.

@kartagis
Copy link
Contributor Author

kartagis commented Oct 5, 2015

Should I upgrade to Qt5? And I mean Ubuntu 14.04

@kartagis
Copy link
Contributor Author

kartagis commented Oct 5, 2015

lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty

@ctrlaltca
Copy link
Contributor

Hum.. 14.04 shouldn't be affected by that bug; sorry.
Anyway,building with qt5 could be a good try; i suggest you not to use ubuntu's own version, but to attempt using a more recent qt version like this one: https://launchpad.net/~beineri/+archive/ubuntu/opt-qt541

@kartagis
Copy link
Contributor Author

kartagis commented Oct 5, 2015

W: Failed to fetch http://ppa.launchpad.net/beineri/opt-qt541/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

@ctrlaltca
Copy link
Contributor

Sorry, i linked a ppa for "precise" instead of the correct one for "trusty".
Please have a look at https://launchpad.net/~beineri for the correct ppa

@un1versal
Copy link
Contributor

This is Qt independent and its been happening for while, its not specific to the KVIrc version mentioned on report.

I compile, use Qt5 (5.2.1) and tested with Qt4 also, Ubuntu 14.04LTS and I can confirm this bug.
Any version in master for last few weeks no idea when this started happening.

@kartagis
Copy link
Contributor Author

kartagis commented Oct 5, 2015

So, what's the next step? Just wait?

@wodim
Copy link
Member

wodim commented Oct 5, 2015

I'd wait until Ubuntu fixes it, honestly.

On Mon, Oct 5, 2015 at 12:10 PM, kartagis [email protected] wrote:

So, what's the next step? Just wait?


Reply to this email directly or view it on GitHub
#1655 (comment).

@un1versal
Copy link
Contributor

@kartagis If this is Ubuntu Bug should be reported to Ubuntu, Else you can wait forever here with this report.
Are you going to report it to them or find out f they have already such report? If it exists or you make a report, please link it here in your reply. Thanks.

Ill trust what wodim and ctrlaltca say and mark this as 3rd party.

@un1versal
Copy link
Contributor

I was investigating this because it bugs me also...

With xev command you are able to see a crucial difference between normal enter key and numbpad enter

Numbpad Enter

KeyRelease event, serial 37, synthetic NO, window 0x3800001,
    root 0x17b, subw 0x3800002, time 12012706, (38,47), root:(640,487),
    state 0x10, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

Normal Enter

KeyRelease event, serial 37, synthetic NO, window 0x3800001,
    root 0x17b, subw 0x3800002, time 12008930, (38,47), root:(640,487),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

So I think its a question (for a workaround) to remap (keysym 0xff8d, KP_Enter) to (keysym 0xff0d, Return)*

No idea how to fix that (properly) in Ubuntu and friends though

@kartagis
Copy link
Contributor Author

kartagis commented Oct 6, 2015

Remap on Ubuntu? Will that not break existing functionality?

On 6 October 2015 at 11:07, un1versal [email protected] wrote:

I was investigating this because it bugs me also...

With xev command you are able to see a crucial difference between normal
enter key and numbpad enter

Numbpad Enter

KeyRelease event, serial 37, synthetic NO, window 0x3800001,
root 0x17b, subw 0x3800002, time 12012706, (38,47), root:(640,487),
state 0x10, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

Normal Enter

KeyRelease event, serial 37, synthetic NO, window 0x3800001,
root 0x17b, subw 0x3800002, time 12008930, (38,47), root:(640,487),
state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

So I think its a question (for a qorkaround) to remap (keysym 0xff8d,
KP_Enter)
to (keysym 0xff0d, Return)*


Reply to this email directly or view it on GitHub
#1655 (comment).

This is an HTML

@un1versal
Copy link
Contributor

I ran this commad

xmodmap -e "keycode 104 = Return"

and now my Numbpad Enter Key under xev reports

KeyRelease event, serial 37, synthetic NO, window 0x3800001,
    root 0x17b, subw 0x0, time 15091454, (163,-15), root:(765,425),
    state 0x10, keycode 104 (keysym 0xff0d, Return), same_screen YES,
    XKeysymToKeycode returns keycode: 36
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

And behaves like Enter Key does.

@un1versal un1versal changed the title Broken keys Broken keys- Numpad Enter behaves like spacebar - Workaround posted Oct 6, 2015
@un1versal
Copy link
Contributor

You going to have to redo this every time you reboot unless you make change permanent btw.

@un1versal
Copy link
Contributor

@un1versal un1versal self-assigned this Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants