Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8700649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:12:55+00:00 2026-06-13T02:12:55+00:00

I am thinking about implementing context help in my application and i wonder if

  • 0

I am thinking about implementing context help in my application and i wonder if it is possible to implement it the way i have in mind:

  1. Register global shortcut to Ext.Body() ex. ctrl+h
  2. Shortcut handler will find the focused component and call its showHelp method
  3. If component have no showHelp method it will move to its parent and call showHelp method.

I wonder if step 2 is possible?. Or is there a better way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:12:56+00:00Added an answer on June 13, 2026 at 2:12 am

    Ok i dig into it. At first i do the following to implement context help:

    1. Created help plugin and added it to each component which should provide context help. The plugin register click listener to each component.
    2. The fired click event registers its source into static HelpManager that holds reference to last focused component
    3. Then after pressing shortcut i get the last component from HelpManager and fire context help using its help config.

    Code:

    
        Ext.define('GSIP.core.help.GSIPHelp',{
            alias:'plugin.help',
            init: function(component) {
                //var me = this;
                component.on('afterrender',function(c) {
                    //WHY FOCUS EVENT IS NOT WORKING?? ONLY CLICK.
                    c.getEl().on('click',function() {
                        console.log('SHOUD REGISTER FOCUS');
                        GSIP.core.help.GSIPHelpMgr.registerFocus(component);
                    });
                });
            }
        });
    
    

    That solution had a serious flaw. If component has a parent and both of them got help plugin the click event is firing twice with parent as last.

    During coding i found in docs Ext.FocusManager and that was it! Using it i am able to find focused component. Using simple function: if the component does not have help i scan through its parents to find one, if there is no parent i just show index, i was able to create context help.

    
        Ext.define('GSIP.core.help.Help',{
            mixins:{
                document:'GSIP.core.utils.Document'
            },
            url:'/GSIP/resources/gsip/core/help/html/',
            showHelp:function(comp) {
    
                if (comp.help != undefined) {
                    this.showDocumentSrc(this.url + comp.help + '.html');
                }else{
                    if (comp.ownerCt == undefined) {
                        this.showDocumentSrc(this.url + 'index.html');
                    }else{
                        this.showHelp(comp.ownerCt);
                    }
                }
            }
        });
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently thinking about implementing an application with NHibernate and I would like
I was thinking about implementing an application in Java (with a GWT GUI) that
I've been implementing the push service to my application, and I've been thinking about
I am thinking about implementing a wrapper for MPI that imitates OpenMP's way of
I'm half-way through implementing parallel depth-first search algorithm in MPI and I'm thinking about
I was thinking about implementing some caching in my ASP.NET web application to improve
I think I know C++ reasonably well and I am thinking about implementing something
I'm thinking about a good solution for implementing a sign up/login system that works
Im thinking about building an application on our website to track order places through
Been thinking about this for hours now. Im building a simple slideshow application, where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.