X
Tap here to go to the mobile version of the site.

Support Forum

Disable F11

Posted

Hello,

is it possible to disable F11 key for enabling disabling full screen or set it to another combination like Alt + F11? My problem is, that i am using citrix html 5 client in firefox. Within the citrix session there is a terminal application where F11 is a special key which is needed. But unfortunatly whenever i use it also Firefox switches the full screen and then the citrix client adjusts the resolution which durates a few seconds. And thats really annoying. Using another key in the terminal application is not possible. The APplication uses F1 - F24 by double using the F1-F12 Keys.

regards

Hello, is it possible to disable F11 key for enabling disabling full screen or set it to another combination like Alt + F11? My problem is, that i am using citrix html 5 client in firefox. Within the citrix session there is a terminal application where F11 is a special key which is needed. But unfortunatly whenever i use it also Firefox switches the full screen and then the citrix client adjusts the resolution which durates a few seconds. And thats really annoying. Using another key in the terminal application is not possible. The APplication uses F1 - F24 by double using the F1-F12 Keys. regards

Chosen solution

You can try to paste this code in the Browser Console to see if that helps for you. It should disable F11 in the current window. You need th enable the command line in the Browser Console.

This code works per window for the most recent used browser window, so you can consider to open a new window for this feature.


doc = Services.wm.getMostRecentWindow("navigator:browser").window.document;
if(E=doc.getElementById('key_fullScreen')){E.removeAttribute('keycode');E.removeAttribute('command');}
Read this answer in context 1
Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

More Information

WestEnd
  • Top 25 Contributor
61 solutions 5340 answers

Keyboard assignments are based on the O/S and only the O/S can change those settings if permitted.

Keyboard assignments are based on the O/S and only the O/S can change those settings if permitted.
Was this helpful to you? 0
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17334 solutions 156717 answers

Chosen Solution

You can try to paste this code in the Browser Console to see if that helps for you. It should disable F11 in the current window. You need th enable the command line in the Browser Console.

This code works per window for the most recent used browser window, so you can consider to open a new window for this feature.


doc = Services.wm.getMostRecentWindow("navigator:browser").window.document;
if(E=doc.getElementById('key_fullScreen')){E.removeAttribute('keycode');E.removeAttribute('command');}
You can try to paste this code in the Browser Console to see if that helps for you. It should disable F11 in the current window. You need th enable the command line in the Browser Console. *https://developer.mozilla.org/en-US/Tools/Browser_Console This code works per window for the most recent used browser window, so you can consider to open a new window for this feature. ---- <pre><nowiki>doc = Services.wm.getMostRecentWindow("navigator:browser").window.document; if(E=doc.getElementById('key_fullScreen')){E.removeAttribute('keycode');E.removeAttribute('command');}</nowiki></pre>
Was this helpful to you? 1
Quote

Question owner

WestEnd said

Keyboard assignments are based on the O/S and only the O/S can change those settings if permitted.

Unfortunatly no. This key assignment is not driven by os. It is driven by firefox itself. I used Vivaldi on linux to test this. In Vivaldi you can disable full screen which also defaults to F11. There i have no more problem in my use case.

''WestEnd [[#answer-1212344|said]]'' <blockquote> Keyboard assignments are based on the O/S and only the O/S can change those settings if permitted. </blockquote> Unfortunatly no. This key assignment is not driven by os. It is driven by firefox itself. I used Vivaldi on linux to test this. In Vivaldi you can disable full screen which also defaults to F11. There i have no more problem in my use case.
Was this helpful to you?
Quote

Question owner

cor-el said

You can try to paste this code in the Browser Console to see if that helps for you. It should disable F11 in the current window. You need th enable the command line in the Browser Console. This code works per window for the most recent used browser window, so you can consider to open a new window for this feature.
doc = Services.wm.getMostRecentWindow("navigator:browser").window.document;
if(E=doc.getElementById('key_fullScreen')){E.removeAttribute('keycode');E.removeAttribute('command');}

Thank you cor-el, your tip works like expected. I tested it in Firefox 66.0.3.

It is a bit clumsy as you have to repeat that every time, of course. But thank you anyway!

''cor-el [[#answer-1212455|said]]'' <blockquote> You can try to paste this code in the Browser Console to see if that helps for you. It should disable F11 in the current window. You need th enable the command line in the Browser Console. *https://developer.mozilla.org/en-US/Tools/Browser_Console This code works per window for the most recent used browser window, so you can consider to open a new window for this feature. ---- <pre><nowiki>doc = Services.wm.getMostRecentWindow("navigator:browser").window.document; if(E=doc.getElementById('key_fullScreen')){E.removeAttribute('keycode');E.removeAttribute('command');}</nowiki></pre> </blockquote> Thank you cor-el, your tip works like expected. I tested it in Firefox 66.0.3. It is a bit clumsy as you have to repeat that every time, of course. But thank you anyway!
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17334 solutions 156717 answers

Helpful Reply

The Browser Console preserves its command line history, so you can us the cursor Up key to recall previously entered code (i.e. it shouldn't be necessary to paste the code each time you need it).

The Browser Console preserves its command line history, so you can us the cursor Up key to recall previously entered code (i.e. it shouldn't be necessary to paste the code each time you need it).
Was this helpful to you? 1
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.