how to disable the INSERT key? it kills Firefox [SOLVED]

Booting, installing, newbie
Post Reply
Message
Author
Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

how to disable the INSERT key? it kills Firefox [SOLVED]

#1 Post by Shep »

Often when I'm typing text into a box in Firefox I accidently tap the Insert key when I intend to hit backspace when correcting a typing mistake. Pressing the Inset key kills Firefox and I have to start it up afresh. This gets to be very tiresome.

I would like to permanently disable that key. (There is another Ins key on the numeric keypad, should I ever want that function.)

Ideally, the key need only be disabled when I'm in Firefox, but that is probably difficult to arrange, and I don't use the key much at other times, anyway. So a permanent solution is okay.

So, how to neuter the pesky Insert key :?:
Last edited by Shep on Fri 24 Jun 2011, 12:20, edited 1 time in total.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#2 Post by bigpup »

What version of Puppy?
The easy way. Physically remove the key from the keyboard.

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#3 Post by Shep »

It's not a new problem, and has happened with every puppy I've ever used, AFAIR. Discovered some older posts that indicate this bug has characterised the Mozilla browsers since 2008, at least. http://www.murga-linux.com/puppy/viewtopic.php?t=65675

I'm currently using Wary 5.1.2

Q) How to emasculate the Insert key?

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#4 Post by Dougal »

Try this:

Code: Select all

xmodmap -e "clear Insert"
If it works, you can put the expression (clear Insert) into /root/.Xmodmap (hidden file).
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

Bruce B

#5 Post by Bruce B »

If memory serves me well, Pizzasgood isolated the problem and came up with a fix.

~

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#6 Post by Shep »

Dougal wrote:Try this:

Code: Select all

xmodmap -e "clear Insert"
If it works, you can put the expression (clear Insert) into /root/.Xmodmap (hidden file).

Code: Select all

#  xmodmap -e "clear Insert"
xmodmap:  commandline:1:  bad clear modifier name 'insert'
xmodmap:  1 error encountered, aborting.

Code: Select all

#  xmodmap -grammar         
xmodmap accepts the following input expressions:

    pointer = default              reset pointer buttons to default
    pointer = NUMBER ...           set pointer button codes
    keycode NUMBER = [KEYSYM ...]  map keycode to given keysyms
    keysym KEYSYM = [KEYSYM ...]   look up keysym and do a keycode operation
    clear MODIFIER                 remove all keys for this modifier
    add MODIFIER = KEYSYM ...      add the keysyms to the modifier
    remove MODIFIER = KEYSYM ...   remove the keysyms from the modifier

where NUMBER is a decimal, octal, or hex constant; KEYSYM is a valid
Key Symbol name; and MODIFIER is one of the eight modifier names:  Shift,
Lock, Control, Mod1, Mod2, Mod3, Mod4, or Mod5.  Lines beginning with
an exclamation mark (!) are taken as comments.  Case is significant except
for MODIFIER names.

Keysyms on the left hand side of the = sign are looked up before any changes
are made; keysyms on the right are looked up after all of those on the left
have been resolved.  This makes it possible to swap modifier keys.
Thanks. If not feasible to disable it, i'd be perfectly happy for it to function identically to the Backspace key, as it's always when I'm trying to jab the Backspace key that I miss the mark and hit Insert.

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#7 Post by Shep »

This looks like it's going to work:

Code: Select all

  xmodmap -e "keysym Insert = BackSpace"
The Insert key becomes a second Backspace key. :)

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#8 Post by Dougal »

Shep wrote:This looks like it's going to work:

Code: Select all

  xmodmap -e "keysym Insert = BackSpace"
The Insert key becomes a second Backspace key. :)
Even easier (I just tried it and it works):

Code: Select all

xmodmap -e "keysym Insert ="
You can check if it worked with

Code: Select all

 xmodmap -pk | grep Insert
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

Bruce B

#9 Post by Bruce B »

1) I hated it when the insert killed the browser because it happened when an edit window was open and all the editing gets lost. Also, even without losing text, it is down right annoying.

2) Pizzasgood made a fix and I looked for it and didn't find it. He hasn't been posting lately. However, it wouldn't hurt if someone sent him a PM asking about it.

3) Lupu 5.20 doesn't have the problem.

~

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#10 Post by bigpup »

What version of Firefox?
I have Firefox 5.0 and the insert key seems to have no effect on Firefox for me.

Got Firefox 5 from here:
http://www.murga-linux.com/puppy/viewto ... 013#526013

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#11 Post by Shep »

bigpup wrote:What version of Firefox?
I have Firefox 5.0 and the insert key seems to have no effect on Firefox for me.
Yes, but do you recognize the precise problem? It reveals itself at the most inconvenient time. Some people have never encountered it; I guess it's only us clumsy typists who keep tripping over that particular stumbling block. I'm still using old faithful 3.6.9
I'm a bit hesitant to do anything that risks introducing a new set of bugs. :roll:

Remember a few puppies back when closing a window that contained the flash player would often crash the browser? - and cleanup involved having to kill a residual mozilla process before the browser could even be started up again? :evil:

I think I'll play it safe for now; might wait for version 7 before risking an upgrade :lol: :lol:
Last edited by Shep on Fri 24 Jun 2011, 02:01, edited 1 time in total.

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#12 Post by Shep »

Dougal wrote:Even easier (I just tried it and it works):

Code: Select all

xmodmap -e "keysym Insert ="
You can check if it worked with

Code: Select all

 xmodmap -pk | grep Insert

Code: Select all

# xmodmap -e "keysym Insert ="
xmodmap:  commandline:1:  bad keysym target keysym 'Insert', no corresponding keycodes
xmodmap:  1 error encountered, aborting.
It's still as I set it, emulating Backspace

Code: Select all

# xmodmap -pk | grep Insert
     90    	0xff9e (KP_Insert)	0xffb0 (KP_0)

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#13 Post by Shep »

Dougal wrote:Even easier (I just tried it and it works):

Code: Select all

xmodmap -e "keysym Insert ="
You can check if it worked with

Code: Select all

 xmodmap -pk | grep Insert
While that didn't work for me--apparently xmodmap knows of no "Insert" key here (strange)--the equivalent using keycode does work to silence that key:

Code: Select all

 xmodmap -e "keycode 106 =" 
The 'strictly correct' way to do this appears to be:

Code: Select all

 xmodmap -e "keycode 106 = NoSymbol" 
Thanks for your help.

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#14 Post by Béèm »

Pizzasgood solution
But only made and tested for 4.x.x as far as I can see.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#15 Post by Dougal »

Shep wrote:
Dougal wrote:Even easier (I just tried it and it works):

Code: Select all

xmodmap -e "keysym Insert ="
You can check if it worked with

Code: Select all

 xmodmap -pk | grep Insert
While that didn't work for me--apparently xmodmap knows of no "Insert" key here (strange)--the equivalent using keycode does work to silence that key:

Code: Select all

 xmodmap -e "keycode 106 =" 
The 'strictly correct' way to do this appears to be:

Code: Select all

 xmodmap -e "keycode 106 = NoSymbol" 
Strange that you don't see Insert...

Code: Select all

# xmodmap -pk | grep Insert
     90         0xff9e (KP_Insert)      0xffb0 (KP_0)   
    106         0xff63 (Insert) 
Maybe you run it after already unsetting it somehow?
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#16 Post by Shep »

Dougal wrote:Strange that you don't see Insert...

Code: Select all

# xmodmap -pk | grep Insert
     90         0xff9e (KP_Insert)      0xffb0 (KP_0)   
    106         0xff63 (Insert) 
Maybe you run it after already unsetting it somehow?
I checked for this on a pristine copy by booting with pfix=ram and sure enough, it's there,

Code: Select all

    104    	0xff54 (Down)	
    105    	0xff56 (Next)	
    106    	0xff63 (Insert)	
    107    	0xffff (Delete)	
    108    	0xff8d (KP_Enter)	
    109    	0xffe4 (Control_R)	
    110    	0xff13 (Pause)	0xff6b (Break)	
    111    	0xff61 (Print)	0xff15 (Sys_Req)	
So you surmised correctly. :)

This still gets us no nearer to discovering why tapping the <Insert> key during text entry in the mozilla browsers kills them. But I've tested this repeatedly since reassigning that key, and Firefox has stood steadfast. :P :P

Post Reply