Opera FAQs, Tips, Tricks & Tweaks

Tips for Opera browser since 2005

Subscribe to RSS feed

Posts tagged with "Keyboard Shortcut"

How to change scroll behaviour of Opera keyboard shortcuts?

, , , ...

In versions prior to Opera 12, the last line on the page becomes the first line when using keyboard shortcut Page Down or Space. But scroll behaviour was changed in Opera 12 to show last 6 lines due to the following reason.

Originally posted by olak:

Some time last year it became very popular to have position:fixed bar on top of sites (examples are Facebook and Twitter). Soon bug reports came trickling in about scrolling in Opera being broken - hiding content. Dozens of reports, including from active, experienced my.opera members but mostly from normal users.

You can use Scroll Marker extension to easily locate the last read line or change the keyboard shortcut action as shown below to bring back old scroll behaviour.

Search keyboard setup for PageDown & Space and change action under browser widget to the following.

Delay, 10 & Go to page,"javascript:(function(){window.scrollBy(0,window.innerHeight-20)})()"
Search keyboard setup for PageUp and change action under browser widget to the following.
Delay, 10 & Go to page,"javascript:(function(){window.scrollBy(0,-window.innerHeight+20)})()"
The above will work only if JavaScript is enabled, otherwise add Enable javascript at the beginning and & Delay, 100 & Disable javascript at the end of the above codes.

[drozdman via forums]

How to find action code to create a keyboard shortcut or mouse gesture in Opera?

, , , ...

It will be convenient to have a keyboard shortcut or mouse gesture for the frequently used action instead of navigating through menu and then clicking the desired menu item. For example, to open new private tab one have to click 3 times in the menu Opera Menu > Tabs ans Windows > New Private Tab.

To create keyboard shortcut or mouse gesture, one should know the action code. For example, to find action code for 'new private tab', type new or private in the action field of keyboard shortcut or mouse gesture. Opera will show action code suggestions for that word and you can figure out the action code.

Opera showing action code suggestions
Opera showing action code suggestions for the word 'private'

The above way of finding the action code won't work always. For example, you won't find action code for 'fit to width' because action code for it doesn't have neither fit nor width. You can find action code by looking through the menu setup file but it will be time consuming.

I have created a menu setup that will show action code when you click a menu item. Download menu setup and place it inside profile\menu directory. To find action code for a menu item, activate downloaded menu setup Ctrl + F12 > Advanced > Toolbars > Menu setup > Opera Standard Menu (Menu Name & Action Code), navigate through menu and click the menu item. A JavaScript prompt will show action code for the clicked menu item.

The menu setup will also show menu name at the top (highlighted in red) and included menus (highlighted in blue) within square brackets and this will help if you want to edit that menu.

Opera menu with menu name
Opera menu with menu name at the top

Action code to enable or disable fit to width
JavaScript prompt showing action code to enable or disable fit to width

  • Action code is shown using JavaScript and if JavaScript is disabled you will get an error message.
  • If action code contains * (asterisk) replace it with " (double quote).
  • You have to activate your previous menu setup after finding the menu name or action code.

Single-key shortcut to close active tab in Opera

, , , ...

The default keyboard shortcut to close active tab is Ctrl + W but single-key shortcut will be more convenient if you use numeric keypad. To enable single-key shortcuts, check Preferences Ctrl + F12 > Advanced > Shortcuts > Enable single-key shortcuts.

Single-key shortcuts, 1 & 2 are assigned to switch to previous tab & next tab respectively. Shortcut 0 is assigned to zoom in by 10% which is same as + and 3 is assigned to cycle through frames which is not much useful. Change shortcut 0 to close active tab & switch to previous tab and 3 to close active tab & switch to next tab as shown below.

Search keyboard setup for s, 0 and change action for 0 to the following.

Close page & Switch to previous page
Search keyboard setup for s, 3 and delete shortcut for 3. Create a new shortcut for 3 under application with the following action.
Close page & Switch to next page
If you want default behaviour of close tab, use the following instead of the above ones.
Close page, 1

How to change Opera menu access keys?

, , , ...

An access key gives you access to a command by pressing a specific key on the keyboard. Access keys appear on the menu with an underline under the shortcut letter. For example, to open the File menu, the access key is F.

Opera automatically generates access keys for the menus, but sometimes they are hard to remember. To change access key, add the ampersand symbol (&) before the letter you want to use as a shortcut in the menu item name. You can modify either menu configuration file or language file.

Default Access Keys
Quick preferences with default access keys
Custom Access Keys
Quick preferences with custom access keys

The following is the default quick preferences menu section of the menu configuration file.

[Quick Preferences Menu]
Item, MI_IDM_CONTROL_MENU_ACCEPT_POPUPS = Enable popup windows
Item, MI_IDM_CONTROL_MENU_OPEN_POPUPS_IN_BACKGROUND = Enable popup windows in background
Item, M_QUICKPREF_POPUP_MENU_REQUESTED_POPUP_ONLY = Enable requested popup windows
Item, MI_IDM_CONTROL_MENU_REFUSE_POPUPS = Disable popup windows
--------------------1
Item, MI_IDM_CONTROL_MENU_ENABLE_ANIMATION = Enable gif animation | Disable gif animation
Item, MI_IDM_CONTROL_MENU_ENABLE_PLUGINS = Enable plugins | Disable plugins
Item, MI_IDM_CONTROL_MENU_ENABLE_JAVASCRIPT = Enable javascript | Disable javascript
Item, M_ENABLE_OPERA_TURBO = Enable Web Turbo | Disable Web Turbo
--------------------2
Item, MI_IDM_CONTROL_MENU_ENABLE_COOKIES = Enable cookies | Disable cookies
Item, MI_IDM_CONTROL_MENU_ENABLE_REFERRER = Enable referrer logging| Disable referrer logging
Item, MI_IDM_CONTROL_MENU_ENABLE_PROXY = Enable proxy servers | Disable proxy servers
--------------------4
Item, M_EDIT_SITE_PREFERENCES = Edit site preferences

The following is the modified quick preferences menu section with custom access keys.

[Quick Preferences Menu]
Item, MI_IDM_CONTROL_MENU_ACCEPT_POPUPS = Enable popup windows
Item, Open Pop-ups in Bac&kground = Enable popup windows in background
Item, Block &Unwanted Pop-Ups = Enable requested popup windows
Item, MI_IDM_CONTROL_MENU_REFUSE_POPUPS = Disable popup windows
--------------------1
Item, Enable &Animated Images = Enable gif animation | Disable gif animation
Item, Enable &Plug-Ins = Enable plugins | Disable plugins
Item, Enable &JavaScript = Enable javascript | Disable javascript
Item, Enable Opera &Turbo = Enable Web Turbo | Disable Web Turbo
--------------------2
Item, Enable &Cookies = Enable cookies | Disable cookies
Item, Send &Referrer Information = Enable referrer logging| Disable referrer logging
Item, Enable Pro&xy Servers = Enable proxy servers | Disable proxy servers
--------------------4
Item, Edit &Site Preferences... = Edit site preferences

How to unhide Opera?

, ,

You can unhide Opera with anyone of the following ways.

  • Right click on Opera tray icon > Open Opera (This is not possible if Show Tray Icon is disabled).
  • Click Opera shortcut in quick launch or double click Opera shortcut in desktop to restore Opera with a new tab.
  • You can use the default shortcut, Ctrl+Alt+Shift+H to hide Opera but not possible to unhide with same shortcut since Opera doesn't have focus. But you can unhide Opera by defining a shortcut key to Opera shortcut in desktop (Right click on Opera shortcut in desktop > Properties > Shortcut key).
    Shortcut key must be different from Opera keyboard shortcut to hide Opera.

    Opera shortcut key
    Opera shortcut key

Opera Mnemonic Keyboard Shortcuts

,

Can't remember Opera keyboard shortcuts? Opera mnemonic keyboard shortcuts to the rescue!

Advantages of mnemonic keyboard shortcuts

  • Easy to remember.
  • No need to press keys simultaneously.

The default keyboard shortcut to hide Opera into the system tray is Ctrl+Alt+Shift+H. You can change keyboard shortcut to the following code and then type hide to hide Opera.

h,i,d,e

Examples:

Description Input context and shortcut Action
Fit to width f,w Enable mediumscreen mode | Disable mediumscreen mode
Preferences editor c,o,n,f,i,g New page & Go to page, "opera:config"
My Opera m,o New page & Go to page, "http://my.opera.com/"
Hide Opera h,i,d,e Hide opera
Address bar a,b Set alignment, "Document toolbar", 6 | Set alignment, "Document toolbar", 0
Read feeds r,s,s Read mail, "rss"
Calculator c,a,l,c Execute program, "calc.exe"

If you use single-key shortcuts, then mnemonic keyboard shortcut should not start with the number and following letters.

a d e h i q s v w x z

[Mnemonic Shortcuts]

How to bring back address field dropdown button in Opera?

, , , ...

By default, address field dropdown button is disabled in Opera 11.50. You can view typed addresses using keyboard shortcut, or Alt + . If you want dropdown button enable Show Dropdown Button In Addressfield.

Opera address field without dropdown button
Address field without dropdown button

Opera address field with dropdown button
Address field with dropdown button

See Useful opera:config (Opera Preferences Editor) entries for more opera:config tips.

Go to a specific tab using keyboard shortcut in Opera

, , ,

Opera has the following keyboard shortcuts to switch between tabs but there is no direct keyboard shortcut to go to a specific tab.

Action Keyboard Shortcut
Cycle to next tab Ctrl + Tab
Cycle to previous tab Ctrl + Shift + Tab
Switch to next tab Ctrl + Shift + F6 or 2 !
Switch to previous tab Ctrl + F6 or 1 !

! Work only if you enable Alt + P > Advanced > Shortcuts > Enable single-key shortcuts

If you use menu bar, enable Alt + P > Advanced > Browsing > Show window menu

Otherwise create a new keyboard shortcut in application section with w alt as input context and shortcut and the following as action.

Show popup menu, "Internal Window List"
Now you can use keyboard shortcuts, Alt + W + 1, Alt + W + 2, ..., Alt + W + 9 and Alt + W + 0 to go to first tab, second tab, ..., ninth tab and tenth tab respectively.

Quickly enable or disable a style using keyboard shortcut/mouse gesture

, , , ...

Author mode and user mode styles can be switched quickly using the default keyboard shortcut, Shift+G but there is no shortcut to enable or disable other styles except View > Style menu.

Any style can be enabled or disabled quickly by using action codes Select user CSS file and Deselect user CSS file respectively. Create a new keyboard shortcut or mouse gesture in Document Window section with the following action code.

Select user CSS file, X | Deselect user CSS file, X

For Windows OS, X = Style sheet number (files sorted in ascending order) - 1. If you don't have any additional CSS style files inside profile\styles\user directory except the default ones, you can use the X value from the following table.

# Style file name Style name X value for Windows OS
1 accessibility.css Accessibility Layout  0 
2 altdebugger.css Alt Debugger 1
3 classid.css Class and Id 2
4 contrastbw.css High Contrast (B/W) 3
5 contrastwb.css High Contrast (W/B) 4
6 disablebreaks.css Disable Breaks 5
7 disablefloats.css Disable Floats 6
8 disableforms.css Disable Forms 7
9 disablepositioning.css Disable Positioning 8
10 disabletables.css Disable Tables 9
11 outline.css Outline 10
12 structureblock.css Block Structure 11
13 structureinline.css Inline Structure 12
14 structuretables.css Table Structure 13
15 tablelayout.css Fixed Table Layout 14
16 toc.css Table of Contents 15

For Linux OS, open terminal and copy & paste the following command to find the X value.

ls ~/.opera/styles/user/ -U | awk '{ print FNR-1 " " $1 }'

Command to find X value in Linux OS
Command to find X value in Linux OS

Example: Action code to enable or disable accessibility layout

For Windows OS,

Select user CSS file, 0 | Deselect user CSS file, 0
For Linux OS,
Select user CSS file, 5 | Deselect user CSS file, 5

If you add additional CSS style files later you may have to change the X value.

How to open new tab with homepage in Opera?

, , , ...

Few users want to open new tab with homepage instead of Speed Dial and it can be accomplished by combining actions.

Keyboard shortcut

If you don't know how to edit keyboard shortcut see this. Change the action for keyboard shortcut, t ctrl in Application section to the following.

New page, 1 & Go to homepage

Mouse gesture

If you don't know how to edit mouse gesture see this. Change the action for mouse gesture, GestureDown in Application section to the following.

Open link in new page | New page & Go to homepage

Button

Drag & drop New tab button next to new tab button and then delete old new tab button.

Don't delete new tab button first.