Re: [racket-users] slideshow keyboard callbacks?

2015-05-19 Thread Matthew Flatt
I don't think keybinding support or slide-changing operations are there
already. My guess is that they'd be easy to add.

At Tue, 19 May 2015 19:30:35 -0700, 'John Clements' via users-redirect wrote:
 I’m creating a simple slideshow, and I’d like to be able to jump to a given 
 slide instantly, ideally by pressing a particular key. Basically, I’d like to 
 be able to write this:
 
 #lang slideshow
 
 (extend-keyboard-handler
  (lambda (key default-handler)
(match key
  [1 (jump-to-slide some-slide)]
  [2 (jump-to-slide some-other-slide)]
  [a (play my-sound)]
  [other (default-handler key)])))
 
 I’ve just been through the slideshow docs, and I don’t see anything like 
 this—at least, not documented. Is something like this easy, or hard?
 
 Thanks!
 
 John
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Racket Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email 
 to racket-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Racket Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] slideshow keyboard callbacks?

2015-05-19 Thread 'John Clements' via users-redirect
I’m creating a simple slideshow, and I’d like to be able to jump to a given 
slide instantly, ideally by pressing a particular key. Basically, I’d like to 
be able to write this:

#lang slideshow

(extend-keyboard-handler
 (lambda (key default-handler)
   (match key
 [1 (jump-to-slide some-slide)]
 [2 (jump-to-slide some-other-slide)]
 [a (play my-sound)]
 [other (default-handler key)])))

I’ve just been through the slideshow docs, and I don’t see anything like 
this—at least, not documented. Is something like this easy, or hard?

Thanks!

John

-- 
You received this message because you are subscribed to the Google Groups 
Racket Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.