Пример #1
0
        public void ReloadKeyBind()
        {
            KeyBindings keyBindFile = MainClass.KeyBinding;

            foreach (ActionGroup @group in ui.ActionGroups)
            {
                foreach (Gtk.Action action in @group.ListActions())
                {
                    string accel = keyBindFile.FindAccelerator(action.Name);
                    if (!String.IsNullOrEmpty(accel))
                    {
                        keyBindFile.ConnectAccelerator(action, accel, ui.AccelGroup);
                        //ConnectAccelerator(action,accel);
                    }
                }
            }
        }