📜 ⬆️ ⬇️

Russian hot keys bugfix for Gran Paradiso (Firefox 3.0)

I think that all Russian-speaking people who used Firefox under Linux were faced with the fact that they do not have hot keys when the Russian layout is enabled. For these cases, an extension was made that cleared up these problems. Today I put Gran Paradiso (the future Firefox 3.0) on Kubuntu and faced with the fact that the extension stubbornly refused to work.

At first it began to resent that it was not intended for the 3rd version of Firefox. This is a fixable matter: we find extensions in the directory (~ / .mozilla / firefox / <there will be one directory> / extensions / <extension number> /, where the extension number is found by iterating through all the directories, they have readme files, look for one in which there will be a mention of “Russian hot keys bugfix”) file install.rdf and change the block under the comment <! - Firefox -> to this:
  <em: targetApplication>
     <Description>
         <em: id> {<there will be a number, paste from your file>} </ em: id>
         <em: minVersion> 1.5 </ em: minVersion>
         <em: maxVersion> 3.0 </ em: maxVersion>
     </ Description>
 </ em: targetApplication> 

After that, the extension stops complaining about the incompatibility of versions and begins to work. More precisely, it starts to “work”, because there’s no sense in the fact that the extension is turned on - no hotkeys want to work with the Russian layout. Got into Google - I didn’t find any fixes for the FF 3.0 extension, nothing. Nothing to do - got into the codes. After 15 minutes of digging in codes, the side was found — the author passed a non-existent parameter to the function. After changing one word and reloading the Gran Paradiso, the script miraculously began to work. Now here I wrote on the soap to the author of the extension so that he straightened his side and laid out a new version in public access. And then to collect the expansion itself now, neither the time nor the desire. :)

For those who want everything right now:
  1. go to the ~ / .mozilla / firefox directory <maybe there will be "-3.0"> / <there will be one directory> / extensions / <extension number> / (see above, in general)
  2. go to chrome / rhkbf.jar / content / rhkbf / (yes, yes. jar is a regular archive and almost all file managers can use it as a directory)
  3. open the overlay.js file and look for the line with “trevt.initKeyEvent (evt.type, evt.canBubble, evt.cancelable,"
  4. change "evt.canBubble" to "evt.bubbles"
  5. reboot the Gran Paradiso and make sure everything works


Taken from here

')

Source: https://habr.com/ru/post/15507/


All Articles