| 1 | [:page:PageHeader][:toc:]
|
|---|
| 2 | + Key Bindings On Linux And Osx
|
|---|
| 3 |
|
|---|
| 4 | The original KeyBindings are for Windows.
|
|---|
| 5 |
|
|---|
| 6 | Some of them doesn't work on Linux or Apple OSX because they are reserved by the Operating System or the Desktop Environment itself. Or due to other reasons.
|
|---|
| 7 |
|
|---|
| 8 | Additionally the Windows' [Ctrl] key is existing on Mac OSX as well.
|
|---|
| 9 | At least it seems so. But in reality one has to use the "Command" key instead.
|
|---|
| 10 |
|
|---|
| 11 | Example:
|
|---|
| 12 | The original keybinding [Ctrl-Space] for AutoComplete is technically equivalent to the key Command-Space on OSX which in fact is used to start Apple Spotlight. Thus, it can't be used by WikidPad.
|
|---|
| 13 |
|
|---|
| 14 | As described in page ChangingKeyBindings it is possible to implement workarounds.
|
|---|
| 15 |
|
|---|
| 16 | This could be done locally in "user_extensions".
|
|---|
| 17 | But preferrably You do it globally in the directory "extensions".
|
|---|
| 18 |
|
|---|
| 19 | Here is a list of already known problems/differences.
|
|---|
| 20 | (This is going to be a bit technically for now...)
|
|---|
| 21 |
|
|---|
| 22 | <<pre
|
|---|
| 23 | -----------------------------------------
|
|---|
| 24 |
|
|---|
| 25 | if wx.Platform == "__WXMSW__":
|
|---|
| 26 | ActivateLinkNewTab="Ctrl-Alt-L"
|
|---|
| 27 | ActivateLinkBackground="Ctrl-Shift-L"
|
|---|
| 28 | else:
|
|---|
| 29 | #elif wx.Platform == "__WXGTK__":
|
|---|
| 30 | # On Linux (at least with KDE) the above Windows' key bindings doesn't work
|
|---|
| 31 | # "Ctrl-Alt-L" creates character 0xFF (and is in KDE command interface)
|
|---|
| 32 | # "Ctrl-Shift-L" simply does nothing
|
|---|
| 33 | ActivateLinkNewTab="Alt-Shift-L"
|
|---|
| 34 | ActivateLinkBackground="Alt-Shift-Ctrl-L"
|
|---|
| 35 | # to test: What about Mac OSX? wx.Platform == "__WXMAC__"
|
|---|
| 36 |
|
|---|
| 37 | -----------------------------------------
|
|---|
| 38 |
|
|---|
| 39 | if wx.Platform == "__WXMAC__":
|
|---|
| 40 | GoHome="Ctrl-Shift-H"
|
|---|
| 41 | StartIncrementalSearch="Alt-Shift-F"
|
|---|
| 42 | FocusFastSearchField="Alt-Shift-S"
|
|---|
| 43 | else:
|
|---|
| 44 | GoHome="Ctrl-Q"
|
|---|
| 45 | StartIncrementalSearch="Ctrl-F"
|
|---|
| 46 | FocusFastSearchField="Ctrl-Shift-F"
|
|---|
| 47 |
|
|---|
| 48 | -----------------------------------------
|
|---|
| 49 |
|
|---|
| 50 | ShowSwitchEditorPreview="Ctrl-Shift-Space"
|
|---|
| 51 | #if wx.Platform == "__WXMAC__":
|
|---|
| 52 | # no good keybinding found that works on Mac
|
|---|
| 53 | # ShowSwitchEditorPreview="??????"
|
|---|
| 54 |
|
|---|
| 55 | -----------------------------------------
|
|---|
| 56 |
|
|---|
| 57 | if wx.Platform == "__WXMAC__":
|
|---|
| 58 | AutoComplete="Alt-Space"
|
|---|
| 59 | else:
|
|---|
| 60 | AutoComplete="Ctrl-Space"
|
|---|
| 61 | >>
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | [:page:PageFooter] |
|---|