rickysarraf / foxreplace

Automatically exported from code.google.com/p/foxreplace
0 stars 0 forks source link

To freely browse while Foxreplace options window is open #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've noticed that while the FoxReplace Options window is open, nothing can be 
done with the rest of Firefox.

This is actually 'very' restrictive, since it makes copying text from pages and 
pasting them into substitution lists a much longer process than it should be.

Every time we need to copy a word we have to first close the FoxReplace option 
window then copy the word, then open the FoxReplace options window again, then 
open the group, then go to substitutions then paste the text. 

The above process needs to be repeated every time a new word needs to be 
copied. Writing words is simple but sometimes copying is faster and sometimes 
you have no choice 'but' to copy.

Is it possible to fix this problem so that we can just copy, select the 
options/substitutions window and then paste the text.

Original issue reported on code.google.com by jedi200...@gmail.com on 12 Aug 2014 at 5:58

GoogleCodeExporter commented 9 years ago
There's a Firefox preference that is browser.preferences.instantApply that by 
default is false in Windows and true in other operating systems. When it's 
true, the Firefox options window is non-modal, i.e. you can change an option 
and continue browsing without closing the options window, and the change is 
applied immediately. The FoxReplace options window follows the same pattern: if 
that preference is true the changes are applied immediately and you can switch 
windows without restriction.

Currently this is implemented only for the main options window but I want to 
extend it to the substitution group editor in the future. But this really only 
impedes you to switch between the substitution group editor and the options 
window, you can still freely switch between the substitution group editor and 
browser windows. So I think you can do what you say by just setting the 
preference to true. You can do so in about:config (open a new tab, type 
about:config in the URL bar, and press enter; there, search for instantApply 
and double-click on it).

Original comment by marc.r...@gmail.com on 12 Aug 2014 at 11:22

GoogleCodeExporter commented 9 years ago
That might fix it.
But I don't understand why.
I mean there are other addons that "don't" have this problem.

Example:
When I edit the options of AdBlock Plus, NoScript or Fox Clocks, I can easily 
browse even while the respective addon's options window is open.
But if I do the same with FoxReplace options it gives the error sound and 
doesn't allow clicking outside the FoxREplace options box at all.

Could you look into it?

Original comment by jedi200...@gmail.com on 17 Aug 2014 at 12:46

GoogleCodeExporter commented 9 years ago
I know it because it's designed this way. If instantApply is true, the window 
is open as a non-modal dialog with a close button on Windows and Linux and 
without any button on Mac. All changes are applied instantly and you can switch 
freely between all windows. On the other hand, if instantApply is false, the 
window is open as a modal dialog with ok and cancel buttons. You have to close 
the window applying or discarding the changes before continuing with other 
things.

I did it this way following these guidelines: 
https://developer.mozilla.org/en-US/Add-ons/Overlay_Extensions/XUL_School/Handli
ng_Preferences#Preference_windows

Original comment by marc.r...@gmail.com on 17 Aug 2014 at 1:37