Firefox Extension: functions for keyconfig
Introduction
■ "functions for keyconfig" is
This extension will provide comfortable keyboard operation for Firefox.
Firefox has an extension
keyconfig
, which set the shortcut key.
but not all functions can be set shortcut key simply.
Usually setting the shortcut key of scrolling, tab focusing, frame focusing,... is not possible.
This extension provide below functions, and allow you to set allow you to set shortcut key simply.
- Functions which are difficult to set shortcut key in normal way.
- Helpful functions for keyboard operation.
In an example, you can scrolling with "asdw" or "hjkl" keys. "Copy URL", "Tab focusing", "Go to Upper Directory" function by keyboard shortcut keys.
Detail
■ Present functions
This extension provide listed functions. There has "f4kc_" prefix on function name.
- Scrolling.
- Tab Focusing.
- Frame Focusing.
- Frame Reloading.
- Find Utils.
- Copy URL Utils.
- Clear AuthInfo.
- And misc Functions.
There are all functions details. In order to prevent conflict with the existing shortcut key, the Alt + Meta key is included in the all shortcut keys.
| function name | action & default-keybind |
|---|---|
| f4kc_Back | Do back.
Alt + Meta + Q |
| f4kc_Back2 | Do back.
Alt + Meta + P |
| f4kc_BookmarkThisPage | Add to the bookmark the seen page.
Alt + Meta + A |
| f4kc_ClearHTTPAuth | Clear HTTP authentication information in viewed pages.
Alt + Meta + Shift + C |
| f4kc_ClearJSConsole | Clear JavaScript Console.
(This function works on Firefox 2.0 or later) Alt + Meta + C |
| f4kc_CompleteURL_com | Complete .com Address
Alt + Meta + Ctrl + Shift + C |
| f4kc_CompleteURL_net | Complete .net Address
Alt + Meta + Ctrl + Shift + N |
| f4kc_CompleteURL_org | Complete .org Address
Alt + Meta + Ctrl + Shift + O |
| f4kc_CopyCurrentTitle | Copy current document title to clipboard.
Alt + Meta + T |
| f4kc_CopyCurrentURI | Copy current URI to clipboard.
Alt + Meta + Y |
| f4kc_Find | Find in This Page
Alt + Meta + Ctrl + S |
| f4kc_FindNext | Find Next
Alt + Meta + Ctrl + N |
| f4kc_FindPrevious | Find Previous
Alt + Meta + Ctrl + P |
| f4kc_FocusFirstInput | Focus the first text input form in the page.
Alt + Meta + Ctrl + I |
| f4kc_FocusNextFrame | Focus to the next frame, and highlight focused frame
Alt + Meta + F |
| f4kc_FocusURLBar | Focus to URL-bar.
Alt + Meta + Shift + U |
| f4kc_Forward | Do forward.
Alt + Meta + Ctrl + ] |
| f4kc_JavaScriptConsole | Open "JavaScript Console"
Alt + Meta + - |
| f4kc_JavaScriptConsoleWithTab | Open JavaScript Console in New Tab.
Alt + Meta + Ctrl + - |
| f4kc_NextTab | Focus to the next tab
Alt + Meta + ] |
| f4kc_OpenHomepageNewTab | Open HomePage in New Tab
Alt + Meta + Shift + B |
| f4kc_PageInfo | Open "Page Info"
Alt + Meta + = |
| f4kc_PrevTab | Focus to the prev tab
Alt + Meta + [ |
| f4kc_Reload | Do reload.
Alt + Meta + Ctrl + R |
| f4kc_ReloadSkipCache | Do reload overriding cache.
Alt + Meta + Shift + R |
| f4kc_ReloadFocusedFrame | Reload Focused Frame
Alt + Meta + Shift + F |
| f4kc_ReloadFocusedFrameOverrideCache | Reload Focused Frame Override Cache & Proxy.
Alt + Meta + Ctrl + F |
| f4kc_ScrollBottom | Scroll to page bottom.
Alt + Meta + Shift + G |
| f4kc_ScrollLeft | Scroll left
Alt + Meta + H |
| f4kc_ScrollLineDown | Scroll linedown
Alt + Meta + J |
| f4kc_ScrollLineUp | Scroll lineup
Alt + Meta + K |
| f4kc_ScrollRight | Scroll right
Alt + Meta + L |
| f4kc_ScrollPageDown | Scroll pagedown
Alt + Meta + Space |
| f4kc_ScrollPageUp | Scroll pageup
Alt + Meta + B |
| f4kc_ScrollTop | Scroll to page top.
Alt + Meta + G |
| f4kc_Stop | Stop Loading.
Alt + Meta + Ctrl + G |
| f4kc_ToggleCheckBox | Toggle CheckBox (When the range has been selected, change only the selected check box)
Alt + Meta + X |
| f4kc_UpperDirectory | Visit upper directory
Alt + Meta + D |
| f4kc_ViewHistorySidebar | View Histroy.
Alt + Meta + Shift + H |
| f4kc_ViewSelectedRegionSource | View selected region's page source.
(How to use Movie)
Alt + Meta + S |
| f4kc_WebSearch | Focus to WebSearch-bar.
(This function works on Firefox 2.0 or later) Alt + Meta + 0 |
Appendix
■ Detail of f4kc_FocusNextFrame

"f4kc_FocusNextFrame" set focus to the next frame, and draw "focused" text at top of select frame to highlight.
In above screenshot, "focused" text to top-right frame (frame2).
Then, f4kc_FocusNextFrame call once, "focused" text move to green-colored-frame (frame3) like below screenshot.

You can test f4kc_FocusNextFrame at f4kc_FocusNextFrame testpage .
■ Detail of f4kc_LoadSubScript
There is a secret function "f4kc_LoadSubScript" which load your XUL code dynamically. If you add a new shortcut key as below sample from keyconfig configuration window, you can use it.

Calling f4kc_LoadSubScript sample is following.
| Operating System | keyconfig setting sample. |
|---|---|
| Windows | f4kc_LoadSubScript("file:///C:/sample.js"); |
| Linux | f4kc_LoadSubScript("file:///home/xxx/sample.js"); |
Comments for This Page. Date: 2008-06-22 15:33 (JST)
