add forgotten file
This commit is contained in:
parent
a67f509f90
commit
8a30ed73b7
13
collects/framework/private/focus-table.rkt
Normal file
13
collects/framework/private/focus-table.rkt
Normal file
|
@ -0,0 +1,13 @@
|
|||
#lang racket/base
|
||||
(require racket/gui/base racket/class)
|
||||
(provide frame:lookup-focus-table
|
||||
frame:set-focus-table)
|
||||
|
||||
;; focus-table : hash[eventspace -o> (listof frame)]
|
||||
(define focus-table (make-hash))
|
||||
(define (frame:lookup-focus-table [eventspace (current-eventspace)])
|
||||
(hash-ref focus-table eventspace '()))
|
||||
(define (frame:set-focus-table eventspace new)
|
||||
(if (null? new)
|
||||
(hash-remove! focus-table eventspace)
|
||||
(hash-set! focus-table eventspace new)))
|
Loading…
Reference in New Issue
Block a user