-
This commit is contained in:
2
info.rkt
2
info.rkt
@@ -1,7 +1,7 @@
|
||||
#lang info
|
||||
|
||||
(define pkg-authors '(hnmdijkema))
|
||||
(define version "0.2.14")
|
||||
(define version "0.2.15")
|
||||
(define license 'MIT)
|
||||
(define collection "web-racket")
|
||||
(define pkg-desc "web-racket - A Web Based GUI library, based on webui-wire")
|
||||
|
||||
@@ -363,6 +363,7 @@
|
||||
(send this html-loaded))))
|
||||
([eq? evt 'click] (handle-click (string->symbol (hash-ref content 'id)) content))
|
||||
([eq? evt 'dblclick] (handle-dblclick (string->symbol (hash-ref content 'id)) content))
|
||||
([eq? evt 'contextmenu] (handle-contextmenu (string->symbol (hash-ref content 'id)) content))
|
||||
([eq? evt 'input] (handle-input (string->symbol (hash-ref content 'id)) content))
|
||||
([eq? evt 'change] (handle-change (string->symbol (hash-ref content 'id)) content))
|
||||
([eq? evt 'resized] (let* ((width* (hash-ref content 'width))
|
||||
@@ -417,6 +418,11 @@
|
||||
(unless (eq? el #f)
|
||||
(send el callback 'dblclick data))))
|
||||
|
||||
(define/public (handle-contextmenu element-id data)
|
||||
(let ((el (hash-ref elements element-id #f)))
|
||||
(unless (eq? el #f)
|
||||
(send el callback 'contextmenu data))))
|
||||
|
||||
(define/public (handle-change element-id data)
|
||||
(let ((el (hash-ref elements element-id #f)))
|
||||
(unless (eq? el #f)
|
||||
|
||||
Reference in New Issue
Block a user