how to disable the INSERT key? it kills Firefox [SOLVED]
how to disable the INSERT key? it kills Firefox [SOLVED]
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
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.
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?
I'm currently using Wary 5.1.2
Q) How to emasculate the Insert key?
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Try this:
If it works, you can put the expression (clear Insert) into /root/.Xmodmap (hidden file).
Code: Select all
xmodmap -e "clear Insert"
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
Dougal wrote:Try this:If it works, you can put the expression (clear Insert) into /root/.Xmodmap (hidden file).Code: Select all
xmodmap -e "clear Insert"
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.
This looks like it's going to work:
The Insert key becomes a second Backspace key.
Code: Select all
xmodmap -e "keysym Insert = BackSpace"
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Even easier (I just tried it and it works):Shep wrote:This looks like it's going to work:The Insert key becomes a second Backspace key.Code: Select all
xmodmap -e "keysym Insert = BackSpace"
Code: Select all
xmodmap -e "keysym Insert ="
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
Some say your nose
Some say your toes
But I think it's your mind
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.
~
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.
~
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
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
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.9bigpup wrote:What version of Firefox?
I have Firefox 5.0 and the insert key seems to have no effect on Firefox for me.
I'm a bit hesitant to do anything that risks introducing a new set of bugs.Got Firefox 5 from here:
http://www.murga-linux.com/puppy/viewto ... 013#526013
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?
I think I'll play it safe for now; might wait for version 7 before risking an upgrade
Last edited by Shep on Fri 24 Jun 2011, 02:01, edited 1 time in total.
Dougal wrote:Even easier (I just tried it and it works):You can check if it worked withCode: Select all
xmodmap -e "keysym Insert ="
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.
Code: Select all
# xmodmap -pk | grep Insert
90 0xff9e (KP_Insert) 0xffb0 (KP_0)
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:Dougal wrote:Even easier (I just tried it and it works):You can check if it worked withCode: Select all
xmodmap -e "keysym Insert ="
Code: Select all
xmodmap -pk | grep Insert
Code: Select all
xmodmap -e "keycode 106 ="
Code: Select all
xmodmap -e "keycode 106 = NoSymbol"
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
Pizzasgood solution
But only made and tested for 4.x.x as far as I can see.
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).
Consult Wikka
Use peppyy's puppysearch
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Strange that you don't see Insert...Shep wrote: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:Dougal wrote:Even easier (I just tried it and it works):You can check if it worked withCode: Select all
xmodmap -e "keysym Insert ="
Code: Select all
xmodmap -pk | grep Insert
The 'strictly correct' way to do this appears to be:Code: Select all
xmodmap -e "keycode 106 ="
Code: Select all
xmodmap -e "keycode 106 = NoSymbol"
Code: Select all
# xmodmap -pk | grep Insert
90 0xff9e (KP_Insert) 0xffb0 (KP_0)
106 0xff63 (Insert)
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
I checked for this on a pristine copy by booting with pfix=ram and sure enough, it's there,Dougal wrote:Strange that you don't see Insert...Maybe you run it after already unsetting it somehow?Code: Select all
# xmodmap -pk | grep Insert 90 0xff9e (KP_Insert) 0xffb0 (KP_0) 106 0xff63 (Insert)
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)
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.