~ubuntu-branches/debian/squeeze/smplayer/squeeze

« back to all changes in this revision

Viewing changes to Configurable_shortcuts.txt

  • Committer: Bazaar Package Importer
  • Author(s): Breuil Cyril
  • Date: 2007-06-24 16:35:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070624163529-hhckbmd24uicada7
Tags: 0.5.20-0ubuntu1
* New upstream release
* Change Maintainer Email

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
A feature that has been repeatedly asked is at last available in version
 
2
0.4.15: configurable key shortcuts.
 
3
 
 
4
Here it's a brief explanation.
 
5
The actions editor is located in Preferences->Mouse & keyboard. There
 
6
you'll see a table with all actions.
 
7
 
 
8
There are 4 columns. The first one will be used to display warnings if
 
9
there are repeated shortcuts.
 
10
The 2nd one shows the current shortcut, which you can change.
 
11
The 3rd column shows the description. This is normally the text that
 
12
appears in menus. Maybe some descriptions, without their menus, aren't
 
13
very clear, so I added in column 4 the internal name of the action.
 
14
 
 
15
 
 
16
How to change a shortcut:
 
17
This is different if you use Qt 3 or Qt 4.
 
18
 
 
19
With Qt 3 it's very easy. Just click on the shortcut cell, and now press
 
20
the key (or combination of keys) that you want to be the new shortcut.
 
21
And the name of the key will appear. To delete a shortcut, right click
 
22
with the mouse and choose "Clear".
 
23
 
 
24
With Qt 4 it's no so easy. Double click on the shortcut cell you want to
 
25
change, and then edit the shortcut text as a normal text.
 
26
Setting a shortcut for key "A" or "F4" is easy, but maybe you can't
 
27
figure out the name of all keys (specially if your language is not
 
28
English). Here (http://doc.trolltech.com/4.2/qt.html#Key-enum) you can
 
29
see the list of key names in Qt (you have to type what is after "Qt::Key_")
 
30
BTW, the name of the Enter key is actually "Return".
 
31
 
 
32
When you click on the Ok or Apply buttons, the new shortcuts will be
 
33
used (and saved to the configuration file). On the the hand if you
 
34
select Cancel all changes will be lost.
 
35
 
 
36
It's also possible to save the list of shortcuts to a file (with
 
37
extension "keys"), and load it later (what you really save or load
 
38
is the current contents of the edition table).
 
39
 
 
40
The *.keys files are just plain text. Each line has two fields separated
 
41
by a tab: the action name, and the shortcut.