[gnome-subtitles] Use Ctrl+[NP_Add/Subtract], Shift+[NP_Add/Subtract] and Alt+[NP_Add/Subtract] as shortcuts for incre
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] Use Ctrl+[NP_Add/Subtract], Shift+[NP_Add/Subtract] and Alt+[NP_Add/Subtract] as shortcuts for incre
- Date: Mon, 6 Jun 2011 23:15:38 +0000 (UTC)
commit bb22407c783bf54a9b577bf389ca43200ba2df34
Author: Pedro Castro <mail pedrocastro org>
Date: Mon Jun 6 23:08:22 2011 +0100
Use Ctrl+[NP_Add/Subtract], Shift+[NP_Add/Subtract] and Alt+[NP_Add/Subtract] as shortcuts for increasing/decreasing start time, end time and shifting subtitles (related to bug #621145, with support from Zsolt Kozak)
src/GnomeSubtitles/Core/GlobalAccelerators.cs | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/GnomeSubtitles/Core/GlobalAccelerators.cs b/src/GnomeSubtitles/Core/GlobalAccelerators.cs
index f7e04fe..9b46149 100644
--- a/src/GnomeSubtitles/Core/GlobalAccelerators.cs
+++ b/src/GnomeSubtitles/Core/GlobalAccelerators.cs
@@ -39,14 +39,14 @@ public class GlobalAccelerators {
Base.Ui.Window.AddAccelGroup(this.accelGroup);
- AddAccelerator((uint)Gdk.Key.e, Gdk.ModifierType.ControlMask, AccelFlags.Visible, Base.Handlers.OnGlobalSubtitleStartIncrease);
- AddAccelerator((uint)Gdk.Key.d, Gdk.ModifierType.ControlMask, AccelFlags.Visible, Base.Handlers.OnGlobalSubtitleStartDecrease);
+ AddAccelerator((uint)Gdk.Key.KP_Add, Gdk.ModifierType.ControlMask, AccelFlags.Visible, Base.Handlers.OnGlobalSubtitleStartIncrease);
+ AddAccelerator((uint)Gdk.Key.KP_Subtract, Gdk.ModifierType.ControlMask, AccelFlags.Visible, Base.Handlers.OnGlobalSubtitleStartDecrease);
- AddAccelerator((uint)Gdk.Key.e, Gdk.ModifierType.ControlMask | Gdk.ModifierType.Mod1Mask, AccelFlags.Visible, Base.Handlers.OnGlobalSubtitleEndIncrease);
- AddAccelerator((uint)Gdk.Key.d, Gdk.ModifierType.ControlMask | Gdk.ModifierType.Mod1Mask, AccelFlags.Visible, Base.Handlers.OnGlobalSubtitleEndDecrease);
+ AddAccelerator((uint)Gdk.Key.KP_Add, Gdk.ModifierType.Mod1Mask, AccelFlags.Visible, Base.Handlers.OnGlobalSubtitleEndIncrease);
+ AddAccelerator((uint)Gdk.Key.KP_Subtract, Gdk.ModifierType.Mod1Mask, AccelFlags.Visible, Base.Handlers.OnGlobalSubtitleEndDecrease);
- AddAccelerator((uint)Gdk.Key.e, Gdk.ModifierType.ControlMask | Gdk.ModifierType.ShiftMask, AccelFlags.Visible, Base.Handlers.OnGlobalSelectionShiftIncrease); //Ctrl Shift + is actually Ctrl *
- AddAccelerator((uint)Gdk.Key.d, Gdk.ModifierType.ControlMask | Gdk.ModifierType.ShiftMask, AccelFlags.Visible, Base.Handlers.OnGlobalSelectionShiftDecrease); //Ctrl Shift - is actually Ctrl _
+ AddAccelerator((uint)Gdk.Key.KP_Add, Gdk.ModifierType.ShiftMask, AccelFlags.Visible, Base.Handlers.OnGlobalSelectionShiftIncrease);
+ AddAccelerator((uint)Gdk.Key.KP_Subtract, Gdk.ModifierType.ShiftMask, AccelFlags.Visible, Base.Handlers.OnGlobalSelectionShiftDecrease);
}
private void AddAccelerator (uint key, ModifierType modifiers, AccelFlags accelFlags, EventHandler handler) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]