Re: Disabling a specific key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 12/18/2014 04:27 PM, Patrick O'Callaghan wrote:
On Thu, 2014-12-18 at 11:01 -0800, Joe Zeff wrote:
On 12/18/2014 10:47 AM, Andras Simon wrote:
You mean you ran it in a terminal, and it worked there but not in a
browser running beside it?
I'm baffled!
That doesn't sound unreasonable if the browser was opened first.  If so,
it might be a good idea to run the command in a terminal and then open
the browser to see if it makes a difference.  Be sure to leave the
terminal open until after you see what the browser does, as that may
make a difference as well.
As I said, I ran the command from the .xsession file which (presumably)
runs during the desktop session start, i.e. before anything else. The
fact that it had an effect on the terminal (konsole) keyboard but not
within the browser is what confuses me.

However there is a further data point: the browser in question is
Chrome. When I try it in Firefox, the result is correct. Other input
dialogues such as the KDE settings panel, or indeed this instance of
Evolution, also work correctly.

IOW it looks like something specific to Chrome.

poc

If you want this to work in a terminal under the aegis of X server, then
you need to do something like:

xmodmap -e "keycode  22 = BackSpace"
xmodmap -e "keycode 107 = Delete"

But of course, it depends on what key it is you wish to modify.

Another way is to have translations in your .Xdefaults file, such as

*xterm.Translations: #override\n\
        <Key>BackSpace: string(0x08)\n\
        <Key>Delete: string(0x7F)\n\
        <Key>Home: string("\033[1~")\n\
        <Key>End: string("\033[4~")
        <KeyPress>Prior : scroll-back(1,page)\n\
        <KeyPress>Next : scroll-forw(1,page)

again, it depends on what key(s) you wish to modify.


--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux