Просмотр исходного кода

Document shortcut for sidebar (#401)

* Document shortcut for sidebar

* Use appveyor-retry to prevent transfer.sh timeouts
Alfredo Ramos 6 лет назад
Родитель
Сommit
2716631591
3 измененных файлов с 14 добавлено и 11 удалено
  1. 11 10
      README.md
  2. 1 1
      appveyor.yml
  3. 2 0
      src/widgets/infowindow.cpp

+ 11 - 10
README.md

@@ -147,16 +147,17 @@ You can use the graphical menu to configure Flameshot, but alternatively you can
 
 These shortcuts are available in GUI mode:
 
-|  Keys                                                                     |  Description                         |
-|---                                                                        |---                                   |
-| <kbd>←</kbd>, <kbd>↓</kbd>, <kbd>↑</kbd>, <kbd>→</kbd>                    | Move selection 1px                   |
-| <kbd>Shift</kbd> + <kbd>←</kbd>, <kbd>↓</kbd>, <kbd>↑</kbd>, <kbd>→</kbd> | Resize selection 1px                 |
-| <kbd>Esc</kbd>                                                            | Quit capture                         |
-| <kbd>Ctrl</kbd> + <kbd>C</kbd>                                            | Copy to clipboard                    |
-| <kbd>Ctrl</kbd> + <kbd>S</kbd>                                            | Save selection as a file             |
-| <kbd>Ctrl</kbd> + <kbd>Z</kbd>                                            | Undo the last modification           |
-| Right Click                                                               | Show color picker                    |
-| Mouse Wheel                                                               | Change the tool's thickness          |
+|  Keys                                                                     |  Description                                                   |
+|---                                                                        |---                                                             |
+| <kbd>←</kbd>, <kbd>↓</kbd>, <kbd>↑</kbd>, <kbd>→</kbd>                    | Move selection 1px                                             |
+| <kbd>Shift</kbd> + <kbd>←</kbd>, <kbd>↓</kbd>, <kbd>↑</kbd>, <kbd>→</kbd> | Resize selection 1px                                           |
+| <kbd>Esc</kbd>                                                            | Quit capture                                                   |
+| <kbd>Ctrl</kbd> + <kbd>C</kbd>                                            | Copy to clipboard                                              |
+| <kbd>Ctrl</kbd> + <kbd>S</kbd>                                            | Save selection as a file                                       |
+| <kbd>Ctrl</kbd> + <kbd>Z</kbd>                                            | Undo the last modification                                     |
+| <kbd>Spacebar</kbd>                                                       | Toggle visibility of sidebar with options of the selected tool |
+| Right Click                                                               | Show color picker                                              |
+| Mouse Wheel                                                               | Change the tool's thickness                                    |
 
 <kbd>Shift</kbd> + drag a handler of the selection area: mirror redimension in the opposite handler.
 

+ 1 - 1
appveyor.yml

@@ -62,7 +62,7 @@ after_build:
     - if "%PLATFORM%" EQU "x86" (xcopy "openssl-utils.git\win32\*.dll" "distrib\flameshot")
     - cd distrib
     - 7z a flameshot_%flameshot_version%_win_%PLATFORM%.zip flameshot
-    - curl --upload-file ./flameshot_%flameshot_version%_win_%PLATFORM%.zip https://transfer.sh/flameshot_%flameshot_version%_win_%PLATFORM%.zip
+    - appveyor-retry curl --upload-file ./flameshot_%flameshot_version%_win_%PLATFORM%.zip https://transfer.sh/flameshot_%flameshot_version%_win_%PLATFORM%.zip
 
 
 # artifacts:

+ 2 - 0
src/widgets/infowindow.cpp

@@ -59,6 +59,7 @@ QVector<const char *> InfoWindow::m_keys = {
     "CTRL + C",
     "CTRL + S",
     "CTRL + Z",
+    "SPACEBAR",
     QT_TR_NOOP("Right Click"),
     QT_TR_NOOP("Mouse Wheel")
 };
@@ -70,6 +71,7 @@ QVector<const char *> InfoWindow::m_description = {
     QT_TR_NOOP("Copy to clipboard"),
     QT_TR_NOOP("Save selection as a file"),
     QT_TR_NOOP("Undo the last modification"),
+    QT_TR_NOOP("Toggle visibility of sidebar with options of the selected tool"),
     QT_TR_NOOP("Show color picker"),
     QT_TR_NOOP("Change the tool's thickness")
 };