SuperQueue

2 - Allow ESC key to close window.

Currently, the ESCAPE key does not dismiss the SuperQueue window.  You have to click on the X button to do so.  Please consider allowing ESCAPE to close the window.

User When Change
Shakakaw Thu, 02 Oct 2008 03:56:45 Changed priority from Medium to Low
Shakakaw Thu, 02 Oct 2008 03:55:48 Changed status from New to Accepted
Jayblah Thu, 02 Oct 2008 03:30:05 Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of Elder82 Elder82 Sun, 05 Oct 2008 21:06:09

    Change SuperQueueWindow.show and hide as follow :)

    function SuperQueueWindow.hide()
        WindowSetShowing("SuperQueueWindow", false)
        WindowUtils.RemoveFromOpenList( "SuperQueueWindow" )
    end
    function SuperQueueWindow.show()
        WindowSetShowing("SuperQueueWindow", true)
        WindowUtils.RemoveFromOpenList( "SuperQueueWindow" )
        WindowUtils.AddToOpenList( "SuperQueueWindow", nil, WindowUtils.Cascade.MODE_NONE )
    end
    

    notes:

    • Second argument of AddToOpenList is a closeCallback, but with WindowUtils.Cascade.MODE_NONE it is ignored.
    • I have to first remove from OpenList to avoid throwing an error every time we open the window.
    • SuperQueueWindow.hide probably could be left unchanged: just added that line for sake of completeness :P
  • Avatar of Shakakaw Shakakaw Thu, 02 Oct 2008 03:55:57

    I will look into this.

  • 2 comments

Facts

Last updated on
12 Oct 2008
Reported on
02 Oct 2008
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Low - Might slip to a later milestone.

Reported by

Possible assignees