This commit is contained in:
2026-02-18 22:21:58 +01:00
parent 54d5caf18e
commit af00785b1f
2 changed files with 7 additions and 1 deletions

View File

@@ -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")

View File

@@ -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)