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

 
 

bug #30233: (InvokedByMenuOrKeypress?) needed

Submitted by:  -Deleted Account- <steele>
Submitted on:  Wed 23 Jun 2010 12:43:10 PM UTC  
 
Category: Feature requestSeverity: 4 - Important
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 04 Dec 2010 12:22:43 PM UTCsteeleOpen/ClosedOpen=>Closed
    Wed 23 Jun 2010 07:01:38 PM UTCrshannStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1