- Timestamp:
- 12/15/08 13:00:15 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/keyboardNavigation_FrameLoop.ls
r1 r215 1 -- keyboard navigation using control+tab to access the menu without mouse 1 -- keyboardNavigation_FrameLoop 2 ----------------------------------- 3 -- DESCRIPTION: 4 -- frame loop and keyboard input "watcher" 5 -- keyboard navigation using control+tab to access the menu without mouse 6 -- 7 -- REQUIRES: 8 -- none 9 -- 10 -- USAGE: 11 -- put this behavior on a framescript in order to loop on that frame 12 -- and track whether the user presses ctrl + TAB 13 -- Currently it is set to track the whole time, therefore the menus even appear 14 -- if the app is not in foreground. 15 -- A deactivate application trigger could change that. I am ok with it myself 16 -- and I even sometimes look up items, when I am in other apps like bbedit... 17 ----------------------------------- 18 19 2 20 3 21 property pActive … … 9 27 if not(pActive) then 10 28 11 if keypressed(48) then 12 if the shiftdown then 29 if keypressed(48) then -- TAB key 30 if the shiftdown then -- CTRL + SHIFT + TAB open handler menu 13 31 sendSprite(xscr().mGetKanal(#handlerMenuTrigger), #mousedown) 14 else 32 else -- CTRL + TAB open utitlities menu 15 33 sendSprite(xscr().mGetKanal(#utilitiesMenuTrigger), #mousedown) 16 34 end if
Note: See TracChangeset
for help on using the changeset viewer.
