We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<kbd>
1 parent be46b70 commit db4a5f9Copy full SHA for db4a5f9
guile/spotiqueue/init.scm
@@ -36,9 +36,11 @@
36
;; represented as string a (just as they'll end up on the pasteboard).
37
(define selection-copied-hook (make-hook 1))
38
39
-;; TODO Check that arguments to define-key are reasonable.
40
(define (define-key map key action)
41
- (hash-set! map key action))
+ (if (and (kbd? key)
+ (hash-table? map))
42
+ (hash-set! map key action)
43
+ (raise-exception 'invalid-define-key)))
44
45
(define-key global-map (kbd 'ANSI_F #:cmd #t) 'window:focus-search-box)
46
(define-key global-map (kbd 'ANSI_L #:cmd #t) 'window:focus-search-box)
0 commit comments