bugDenemo - Bugs: bug #30233, (InvokedByMenuOrKeypress?) needed

 
 

bug #30233: (InvokedByMenuOrKeypress?) needed

Submitter:  -Deleted Account- <steele>
Submitted:  Wed 23 Jun 2010 12:43:10 PM UTC
   
 
Category:  Feature request
Severity:  4 - Important Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 23 Jun 2010 07:01:38 PM UTC, comment #2: 

OK, I have defined DenemoKeypressActivatedCommand to be #t before a keypress activated script is invoked and set it #f afterwards.
Scripts can and sometimes should set it #f on entry.
Now in git.

Richard Shann <rshann>
Group administrator
Wed 23 Jun 2010 04:57:32 PM UTC, comment #1: 

An example would be the command InsertTiedNoteDuration which expects another keypress. If the user invokes it via the menu then it is daft that it should expect the duration to come from a keypress without telling the user to give that keypress.
I am not sure if I know how to implement this at all cleanly though...

Richard Shann <rshann>
Group administrator
Wed 23 Jun 2010 12:43:10 PM UTC, original submission:  

A function is needed that returns if a command was invoked by a keypress or via mouseclick/the menu. This is only needed for commands that are in the menu anyway! (d-Xy)

The main purpose behind this is to avoid menu-commands that  can be clicked on but do apparently nothing.
 
This is extremly useful for commands that can be run with parameters but show a GUI if not (For example) and prevents a mess with two variants of the same command one for the menu and one hidden for the keypress (and the unsolved problem how to show a keypress for the menu-label which is technically not existent but only true for its sibling, the keypress-version).

The command tests before running and can either directly do its action (or wait for another key, for example a duration) or show a GUI instead where you can choose from a list.

-Deleted Account- <steele>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rshann (Posted a comment)
  • -email is unavailable- added by steele (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-12-04 steele Open/ClosedOpen Closed
    2010-06-23 rshann StatusNone Fixed

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code