I have been browsing around to find a way to disable closing Firefox 7 tab using ctrl+F4.
Kind of hard to find an easy way to do it. Lock down browser security will help me using Firefox as a kiosk during the Linux Day event.
Have you seen the keyconfig addon?
Or, more directly kiosk-related: R-kiosk
Curious, I've never known CTRL+F4 is able to close the tab.
I've investigated the case a bit. I've tried disabling it in Keyconfig, but without success. The shortcut is not even listed there. When you try to add other shortcut to CTRL+F4 to override the default behavior, it still closes the tab.
Note that also CTRL+W is able to close the tab, but in this case you can disable it in Keyconfig.
Seems that CTRL+W and CTRL+F4 are handled different way therefore.
About CTRL+F4, I was able to find the following code:
http://dxr.mozilla.org/mozilla-central/browser/base/content/tabbrowser.xml.html, #else in line 2437:
#ifdef XP_MACOSX
...
#else
if (aEvent.ctrlKey && !aEvent.shiftKey && !aEvent.metaKey &&
aEvent.keyCode == KeyEvent.DOM_VK_F4 &&
this.mTabBox.handleCtrlPageUpDown) {
this.removeCurrentTab({animate: true});
aEvent.stopPropagation();
aEvent.preventDefault();
}
#endif
I'm new to Mozilla code base, so I don't know where to search for CTRL+W however. But it seems CTRL+F4 is hardcoded at compile time for Windows and Linux and not easily (or at all) configurable.
You can think of reporting a bug to Bugzilla but I don't know if this would get top-priority treatment.
In your Firefox address bar type about:config and hit enter you will be shown the warning to proceed with care, then look for the properties like
browser.tabs.warnOnClose,
browser.tabs.closeButtons,
browser.tabs.closeWindowWithLastTab.
You need to modify the binary values or change the boolean values from true to false or vice versa. If you don't have such entries, create them with right-click > New > Boolean.
PS: Please proceed with care.
Related
For the most part I very much like Qt Creator, but a few projects I'm working on require me to switch between my editor and my web browser for reference. Qt Creator is currently interpreting Alt+Tab to autocomplete, and then switching my window focus; this is a mild problem but it's really starting to get to me.
I've tried going to Tools→Options→Keyboard and searching for Alt+Tab, but found nothing. Is there a way to get it to selectively ignore the key combination without disabling autocomplete on the whole?
To complete the picture, I'm on Linux Mint 19.04 using XFCE desktop environment; or occasionally Maté. If I need to access something in system settings to do this I'm happy to; I just don't want to keep excessively second-guessing my code when I return to it.
Auto-complete is bound to Ctrl+Space by default, not Alt+Tab. In tools/options/keyboard, search for "CompleteThis" to see what it's bound to.
Maybe what you want is to disable auto-complete and use only manual-complete? That is, have the auto-complete list only show when you press ctrl+space, but never automatically. You can do that in options/text editor/completion.
I want to disable autocorrect in specific page of Edge Browser.
How can I disable autocorrect in Edge?
But I don't want to disable autocorrect of whole Windows10.
(example...Settings -> Devices -> Typing....This is not...!!)
You can solve this without editing the registry:
It's not about Edge but the whole win 10. Open
Settings from the start menu, then go to devices. There you'll find a
tab named Typing, fifth in the list for me, and the autocorrect
feature is displayed there. If you switch the autocorrect off, edge
will stop bugging your text (i actually wrote this in edge ;) ).
Enjoy. :)
Note: Currently open Edge windows will still auto-(in)correct until Edge has been restarted.
Another article in the link in Etiennes answer.
Apparently the menu is not available by default.
By reading the instructions here : http://answers.microsoft.com/en-us/windows/forum/windows_10-networking/how-to-turn-of-autocorrect-typing-in-edge/6944dcc4-6ef4-4ec6-afaa-5a0ca08c3bd2?auth=1
You can follow this and it should work :
If for some reason the "Typing" tab in the settings is gone (It was for me) you can unhide it through regedit.
Use regedit and search for the following value: "ShowAutoCorrection". Change the value to '1' and you should be able to access "Settings -> Devices -> Typing" to change your autocorrection settings.
Restart your application, log in and out, or reboot your system to make the changes apparent. It worked for Skype at the very least for me.
I have found a solution, friends of Edge! Download the Tampermonkey MS Edge extension from the Windows Store and install the following UserScript:
https://greasyfork.org/de/scripts/39190-disable-spellcheck-globally
This UserScript sets the "spellcheck" attribute to the global element/tag of every website you visit so that Edge MUST obey the rules. This also fixes the issue of auto-correction.
If you want to limit it to a certain website just modify the "#include" tags, for example:
#include https://www.reddit.com/*
To disable spellchecking on reddit only.
You can get Tampermonkey here: https://www.microsoft.com/en-us/store/p/tampermonkey/9nblggh5162s
Works on Windows 10 build 17112.1
What I found to do it disable autocorrect in the new Chromium-based Edge, is to right-click on a word that has been autocorrected. It should list the original word with the option to restore it. Beneath that, there should be an option to either disable autocorrect for that site or permanently. Select your preference and autocorrect should stop bugging you.
Hope to be of help.
I've searched for different types of workarounds to deal with the preview window splitting the current window to display documentation when doing a selection in Omnicompletion, like closing the preview window if it exists when you leave insert mode.
However, those solutions are impractical. Sometimes you may want to go into the preview window to read some documentation about the current completing module, but with the autocommand in place this would not be possible.
Even if it would, I am looking to have the documentation never show up because I really don't want it.
Reading the source code in pythoncomplete.vim I see that the value for the documentation is hard coded and it will force the preview window to show up if this has any contents (it skips this if it can't come up with docs for the module).
Is there a global option that I am not aware to tell Vim to never display docs? Or be able to toggle it?
If I do want to read the docs in a split window allow me to do so (maybe with some shortcut) otherwise don't show me anything.
I really want to avoid having to copy/paste pythoncomplete.vim to tweak this particular setting to my liking.
The preview is controlled by the global 'completeopt' setting. To turn that off, use
:set completeopt-=preview
I realized that I waste 10% of my time changing windows between Vim and Firefox.
Alt + Tab + F5 (and sometimes a get the wrong window).
Is there a way of making this task easier?
I thought of the following:
Embending vim to firefox (I think it is impossible).
Making a Vim shortcut which sends me to Firefox's window.
Any suggestions?
Technically, I guess this ain't proper answer, but You might benefit from these tools.
For Chrome - try LiveReload.
For Firefox - try XRefresh.
Here's a Vim shortcut to open the current file in Firefox. It should work on Ubuntu, though I'm not in front of my Linux machine to test. You can add it to your ~/.vimrc
map <Leader>p :!firefox %<CR><CR> " Preview the current html file in Firefox
If you're looking for varations on that same theme, there are quite a few similar tips on the Vim wiki. Check the duplicate links tip at the top and the "See Also" links at the bottom.
If you are on Windows, AutoHotKey is a good free option.
You could assign a key combination to activate the Firefox browser, send the F5 key to Firefox, and then return focus to Vim.
Benefits of AutoHotKey:
You could have logic that checks whether the Firefox is open, and if it is not open, open it.
You could use the AutoHotKey Window Spy tool to actually activate Firefox. Alt+Tab will fail if you've activated another window in between Vim and Firefox.
See for example:
http://www.autohotkey.com/docs/commands/WinActivate.htm
http://www.autohotkey.com/docs/Tutorial.htm
I recently updated my Eclipse to the latest release 3.5 and since then I have a very annoying problem with c&p using the shortcuts.
In an editor (xml, jsp, doesn't matter which one) I try to copy something and paste it somewhere else, nothing happens. When I cut out something and put it somewhere else I sometimes get something else (like a messed up part of my previous selection) or just some whitespaces. This gets even worse when I change lines in between.
First I thought that my keyboard is probably broken but it works just fine in other programs. Then I tried using the context menus' c&p and there it works. Yesterday I managed to get at least an error message when I tried to copy a file in the navigator from one project to another (the message was just "error using copy...bla". no details).
Does anyone else have this problem, or know how to solve it?
I am running on Kubuntu 9.04, and have quite some plugins installed (but only from the Galileo Updates Site), like Birt, Mylin, WST, or Subversive.
For my problem, I had to go to Window > Preferences > Java > Editor > Typing, and uncheck "Update imports"
This must be related to the key mapping, since those shortcuts are defined according to context.
(Column "When", in Preferences / General / Keys)
Check if those shortcuts do not work for any editor (do they work for Java editor?)
If they work for some editor, not for other, then some plugin settings must have re-affected them to another command.
This is caused by various X clipboard managers doing weird things with the clipboard. (bug report).
In XFCE the clipman applet was rolled in XFCE 4.8, and will be the source of these problems.
To fix this in XFCE - kill xfce4-settings-helper. You will need to use Settings Manager -> Session and Startup -> Session to kill it, as otherwise it may restart automatically.
To prevent this starting next time, you will need to remove it from your startup/login programs in Settings Manager > Session and Startup > Application Autostart.
Problem was solved with newer Eclipse releases. I think >= 3.6. Depending on your distribution there may be a (back)port of this (not on my Xubuntu 11.04) within the repositories.
So a tarball installation of Eclipse 4.0 works perfectly for me. Cut&Paste works and I am lucky that my plugins are compatible to 4.0.
Unfortunately Sublime Text has the same problems.
I read somewhere that in KDE maybe Klipper / "Klipper on the panel" conflicts with eclipse copy action.
It's a tool for clipboard history. Try to remove that! It may solve your problem :-/
For me the xfce4-settings-helper killing worked.
Workaround:
You can cut&paste from the compare view. So simply compare the un-copyable file (e.g., local history) with a different version and Control-C what you need there.
In the *.java editor page, right click and select open in text editor. Past your snippet there. Your Snippet will show in the *.java page'
I use Eclipse Kepler for PHP development. It's dumb I know.
None of the solutions suggested here has solved this source of frustration.
I can confirm the copy function works whether shortcut keys are bound or not. As I can copy from eclipse and paste into any other application. Except eclipse.
My solution. Accidental discovery: Eclipse Kepler will allow you to paste outside the php open and close tags and allow you to click and drag the highlighted block of content into into position.
Acceptable solution for small bits of code. Horribly crippling for larger development environments.
For Xming, this resolved the problem for me. In XLaunch uncheck Clipboard (clipboard manager) in the "Specify parameter settings" GUI form.