MozillaZine

Disable ALL keyshortcuts in Mozilla Firebird?

User Help for Mozilla Firefox
Grilla
Guest
 

Post Posted December 11th, 2003, 4:12 am

How do i disable ALL keyboardshortcuts like Ctrl-U, F11 and so on exept F5 in Mozilla Firebird?

Guest
Guest
 

Post Posted December 11th, 2003, 4:44 am

I also need help in removeing some options from the rightclickmenu.
I just want Back, Forward, Reload and Stop in this menu...

Guest
Guest
 

Post Posted December 11th, 2003, 4:55 am

and rightclicks on links or images should do nothing at all...

Sorry for many posts.

old momokatte
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted December 11th, 2003, 5:12 am


mai9

User avatar
 
Posts: 1619
Joined: January 15th, 2003, 3:41 pm
Location: Barcelona

Post Posted December 11th, 2003, 5:34 am

here's a list of everything I remove:
Code: Select all
/* =============== Remove Items In Context Menu: WEB PAGE */
/* #context-back, /* "Back" */
#context-forward, /* "Forward" */
#context-reload, /* "Reload" */
#context-stop, /* "Stop" */
#context-sep-stop, /* Separator Below "Stop" */
#context-bookmarkpage, /* "Bookmark This Page..." */
#context-savepage, /* "Save Page As..." */
#context-sendpage, /* "Send Page..." */
/* =============== Remove Items In Context Menu: LINKS */
#context-openlink, /* "Open Link in New Window" */
#context-openlinkintab, /* "Open Link in New Tab" */
#context-sep-open, /* Separator Below "Open Link in New..." */
/* #context-bookmarklink, /* "Bookmark This Link..." */
/* #context-savelink, /* "Save Link to Disk..." */
#context-sendlink, /* "Send Link..." */
/* #context-copylink, /* "Copy Link Location" */
/* #context-copyemail, /* "Copy Email Address" */
/* #context-sep-copylink, /* Separator Below Link Items */
/* =============== Remove Items In Context Menu: IMAGES */
#context-viewimage, /* "View Image" */
#context-copyimage, /* "Copy Image Location" */
#context-sep-copyimage, /* Separator Below "Copy Image location" */
/* #context-saveimage, /* "Save Image As..." */
#context-sendimage, /* "Send Image..." */
#context-setWallpaper, /* "Set As Wallpaper" */
#context-blockimage, /* "Block Images from this Server" */
#context-sep-viewbgimage, /* Separator Above "View Background Image" */
#context-viewbgimage, /* "View Background Image" */
/* =============== Remove Items In Context Menu: TEXT */
/* #context-undo, /* "Undo" */
/* #context-sep-undo, /* Separator Below "Undo" */
/* #context-cut, /* "Cut" */
/* #context-copy, /* "Copy" */
/* #context-paste, /* "Paste" */
/* #context-delete, /* "Delete" */
/* #context-sep-paste,  /* "Separator Below "Delete" */
#context-selectall,  /* "Select All" */
#context-sep-selectall,  /* "Separator Below "Select All" */
#context-searchselect, /* "Web Search  for..." */
/* #context-viewpartialsource-selection, /* "View Selection Source" */
/* =============== Remove Items In Context Menu: EXTRA */
/* menu[id="frame"], /* "This Frame" */
#context-sep-frame, /* Separator Above "This Frame" NOT WORKING */
/* #context-viewpartialsource-mathml, /* "View MathML Source" */
/* #context-sep-properties, /* Separator Above Properties Items */
/* #context-viewsource, /* "View Page Source" */
/* #context-viewinfo, /* "View Page Info" */
/* #context-metadata, /* "Properties" */
/* #NeedleSearch-menu, /* "NeedleSearch" (extension) */
#blogthis-sep /* Separator Above "BlogThis" (extension) */
{ display: none; !important; }

/* Hide browser menus
#navigator-toolbox menu[label="File"], */
#navigator-toolbox menu[label="Edit"],
#navigator-toolbox menu[label="View"],
#navigator-toolbox menu[label="Go"],
/* #navigator-toolbox menu[label="Bookmarks"], */
/* #navigator-toolbox menu[label="Tools"], */
#navigator-toolbox menu[label="Help"]
{ display: none !important; }

/* Hide all menu bar
#toolbar-menubar { display: none !important; } */

/* Hide "Add to Bookmarks" and "Manage Bookmarks" in bookmarks menu */
menuitem[label="Add to Bookmarks..."],
menuitem[label="Manage Bookmarks..."],
menuitem[label="Manage Bookmarks..."] + menuseparator { display: none !important; }

/* Hide last item "Open in Tabs" in bookmarks menu */
#openintabs-menuseparator,
#openintabs-menuitem { display: none !important; }

/* Remove the 'Go' word in Go Button */
#go-button > .button-box > .button-text { display: none !important; }

/* Remove the link in status bar for AdBlock extension
statusbarpanel[id="adblock-status"] { display:none !important; } */

/* Remove Close Button in Tabbar */
.tabs-closebutton { display:none !important; }

/* Remove arrow in search bar */
.search-proxy-button-dropmarker { display:none !important; }

/* no Back/Forward drop-down arrows */
.toolbarbutton-menubutton-dropmarker { display: none !important; }

/* Remove stop button when there's nothing to stop
#stop-button[disabled="true"] { display: none; } */

/* Remove separators in bookmarks menu
menuitem.bookmark-item + menuseparator,
menu.bookmark-item + menuseparator { display: none !important;} */

/* Toolbars without borders */
menubar, toolbox, toolbar {border-style: none !important; }

/* Don't display icons in tabs
.tabbrowser-tabs .tab-icon { display: none; } */

/* Remove the link in status bar for AdBlock extension */
statusbarpanel[id="adblock-status"] { display:none !important; }


I think that to disable shortcuts you will need to hack the program, some jar probably.
Last edited by mai9 on December 11th, 2003, 5:45 am, edited 1 time in total.

!!!!cdn!

User avatar
 
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish

Post Posted December 11th, 2003, 5:36 am

disabling <key>s is just a matter of assigning their command to ""

see: http://forums.mozillazine.org/viewtopic ... key#265628

Grilla
Guest
 

Post Posted December 11th, 2003, 6:01 am

!!!!cdn! wrote:disabling <key>s is just a matter of assigning their command to ""

see: http://forums.mozillazine.org/viewtopic ... key#265628


Thanks.
In what file should i put that?

!!!!cdn!

User avatar
 
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish

Post Posted December 11th, 2003, 6:57 am

you need to create an extension to Firebird for this - it is NOT a simple user file edit

or if you're feeling brave hack browser.xul, and remove all keys that you don't want, this isn't as portable though

Guest
Guest
 

Post Posted December 11th, 2003, 8:25 am

!!!!cdn! wrote:you need to create an extension to Firebird for this - it is NOT a simple user file edit

or if you're feeling brave hack browser.xul, and remove all keys that you don't want, this isn't as portable though


In the other tread:

don't script it

just use an overlay, thus :

Code:

<?xml version="1.0"?>

<overlay id="unF11Overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<keyset id="mainKeyset">
<key id="key_fullScreen" keycode="VK_F11" command=""/>
</keyset>

</overlay>

Didn't he mean that this should be put in a file?
Which file?

!!!!cdn!

User avatar
 
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish

Post Posted December 11th, 2003, 9:03 am

any xul filename you like, if it's an extension, see : http://forums.mozillazine.org/viewtopic ... 837#291837

Grilla
Guest
 

Post Posted December 12th, 2003, 1:48 am

!!!!cdn!:
contents.rdf and contextSourceLink.xul zipped up as contextSourceLink.jar
that plus install.js zipped up as contextSourceLink.xpi

How do i do this?

I've never done a Mozilla Firebird extension before.

!!!!cdn!

User avatar
 
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish

Post Posted December 12th, 2003, 6:17 am

http://downloads.mozdev.org/cdn/nokeys/nokeys.xpi

only overrides browser.xul specified keys, and only those with command or oncommand

[url]view-source:chrome://browser/content/browser.xul[/url]

no guarantees that this will work
!!!!cdn!
-- http://extensionroom.mozdev.org/#chromedit -- http://themes.mozdev.org/ --
Mozilla/5.0 (X11; U; Linux i686; en-*; rv:*.*) Gecko/200*mmdd Mozilla Firebird/*.*

Grilla
Guest
 

Post Posted December 15th, 2003, 12:47 am

!!!!cdn! wrote:http://downloads.mozdev.org/cdn/nokeys/nokeys.xpi

only overrides browser.xul specified keys, and only those with command or oncommand

[url]view-source:chrome://browser/content/browser.xul[/url]

no guarantees that this will work


That didnt work.
The extension doesnt show up in Extensions ín the options menu.
The keys still work.
And i now have a red text at the bottom of my brower saying:
key="&newNavigatorCmd.key;"
---------------^

Whats wrong and how do i remove this red text?
It shows up for all users.

!!!!cdn!

User avatar
 
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish

Post Posted December 15th, 2003, 1:44 am

The extension was deliberately made not to show up in the extensions panel, since you may not want users to be able to disable it.

Keys still work because you have that red localisation error, which means you have to do some work as well : )

When you have this fixed, it ought to work.

Looking at the source ...

I appear to have left out the <!DOCTYPE > section : ]

Code: Select all
<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
%browserDTD;
<!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
%globalRegionDTD;
<!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
%charsetDTD;
]>


add this to the top of nokeys.xul

or wait for mirrors to update the xpi
!!!!cdn!
-- http://extensionroom.mozdev.org/#chromedit -- http://themes.mozdev.org/ --
Mozilla/5.0 (X11; U; Linux i686; en-*; rv:*.*) Gecko/200*mmdd Mozilla Firebird/*.*

Guest
Guest
 

Post Posted December 15th, 2003, 3:39 am

!!!!cdn! wrote:The extension was deliberately made not to show up in the extensions panel, since you may not want users to be able to disable it.

Keys still work because you have that red localisation error, which means you have to do some work as well : )

When you have this fixed, it ought to work.

Looking at the source ...

I appear to have left out the <!DOCTYPE > section : ]

Code: Select all
<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
%browserDTD;
<!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
%globalRegionDTD;
<!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
%charsetDTD;
]>


add this to the top of nokeys.xul

or wait for mirrors to update the xpi


Well... i cant seem to find a nokeys.xul on my system, som i have to wait for the mirrors.
How long does it usually takes before its updated?

Return to Firefox Support


Who is online

Users browsing this forum: Google [Bot] and 7 guests