After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757834 - Provide a shortcuts window
Provide a shortcuts window
Status: RESOLVED FIXED
Product: bijiben
Classification: Applications
Component: UI
3.19.x
Other Linux
: Normal normal
: ---
Assigned To: Bijiben maintainer(s)
Bijiben maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-11-09 16:57 UTC by Allan Day
Modified: 2017-12-27 12:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add a shortcuts window (8.50 KB, patch)
2017-11-20 12:13 UTC, Jonathan Kang
none Details | Review
Add a shortcuts window (9.59 KB, patch)
2017-12-05 02:34 UTC, Jonathan Kang
none Details | Review
Add a shortcuts window (9.60 KB, patch)
2017-12-27 06:29 UTC, Jonathan Kang
committed Details | Review

Description Allan Day 2015-11-09 16:57:53 UTC
Since Bijiben doesn't have a menu bar, it would be great to provide a GtkShortcutsWindow so that users can discover available keyboard shortcuts.

More details can be found here: https://wiki.gnome.org/Initiatives/GnomeGoals/ShortcutWindows
Comment 1 Mohammed Sadiq 2017-11-11 02:10:29 UTC
The following shortcuts are now available:

General:
  F1 = help
  Ctrl + q: Quit the application
  Alt + Left Arrow: Move to last view (have issues, may not be good to include)
  Ctrl + W: Same as above
  Ctrl + N: New note

Selection mode:
  Escape: Cancel selection mode
  Ctrl + A: Select all

Note Edit mode:
  Ctrl + b: toggle bold property of selected text
  Ctrl + i: toggle italic property of selected text
  Ctrl + s: toggle strike through property of the selected text
  Ctrl + z: undo
  Ctrl + Shift + z: redo
  Ctrl + Delete: Move to trash
Comment 2 Jonathan Kang 2017-11-20 12:13:40 UTC
Created attachment 364041 [details] [review]
Add a shortcuts window
Comment 3 Mohammed Sadiq 2017-11-20 15:24:51 UTC
Review of attachment 364041 [details] [review]:

Hi. I was vague when I wrote this. I assumed the author of the code would do it right. So you may replace those text with better smaller ones.

The text provided corresponding to shortcuts may note be good enough.  Say for example "toggle strike through property of the selected text" is really long (and may be much more longer in translations). You may use smaller text if possible. Would "toggle strike through" be good?

How about "Move note to trash"?

You may also add Ctrl+F1/Ctrl+? that will open shortcuts window.

You will also have to add the file in po/POTFILES.in for the translations to happen really.

Thanks
Comment 4 Isaque Galdino 2017-11-20 23:37:08 UTC
Hi Jonathan, thanks for your patch. Besides all the stuff that Sadiq already reviewed, would you please write a better commit message?

That will improve our code base and git follow up.

Nice work so far, thanks!
Comment 5 Jonathan Kang 2017-11-21 09:26:26 UTC
(In reply to Mohammed Sadiq from comment #3)
> 
> The text provided corresponding to shortcuts may note be good enough.  Say
> for example "toggle strike through property of the selected text" is really
> long (and may be much more longer in translations). You may use smaller text
> if possible. Would "toggle strike through" be good?

I just used LibreOffice and the tooltip for that button is simply
"Strikethrough". So maybe we can simply use "Bold", "Italic" and "Strikethrough"?
> 
> How about "Move note to trash"?

Or to be precise, "Move current note to trash"?
> 
> You may also add Ctrl+F1/Ctrl+? that will open shortcuts window.

Sure.
> 
> You will also have to add the file in po/POTFILES.in for the translations to
> happen really.

Ahh. I thought that file is not needed anymore after porting to meson, which is
apparently not right.


(In reply to Isaque Galdino from comment #4)
> Hi Jonathan, thanks for your patch. Besides all the stuff that Sadiq already
> reviewed, would you please write a better commit message?
> 
Will do.
Comment 6 Jonathan Kang 2017-12-05 02:34:44 UTC
Created attachment 364985 [details] [review]
Add a shortcuts window

Patch updated.
Comment 7 Isaque Galdino 2017-12-19 14:06:03 UTC
Review of attachment 364985 [details] [review]:

Hi Jonathan, thanks for your patch, but still it doesn't apply:
error: patch failed: po/POTFILES.in:6
error: po/POTFILES.in: patch does not apply
Comment 8 Jonathan Kang 2017-12-27 06:29:58 UTC
Created attachment 366001 [details] [review]
Add a shortcuts window

patch rebased
Comment 9 Isaque Galdino 2017-12-27 12:37:22 UTC
Review of attachment 366001 [details] [review]:

Thanks for you patch.