Skip to content

Commit

Permalink
Fix of key formatting error in braille output
Browse files Browse the repository at this point in the history
  • Loading branch information
mz-pdm committed Jun 5, 2012
1 parent 97c1ced commit c5d893a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion speechd-braille.el
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
;;; speechd-braille.el --- Emacs braille emulator driver

;; Copyright (C) 2004, 2005, 2006, 2008 Brailcom, o.p.s.
;; Copyright (C) 2012 Milan Zamazal

;; Author: Milan Zamazal <pdm@brailcom.org>

Expand Down Expand Up @@ -168,7 +169,7 @@
driver text (speechd-braille--make-message driver text nil))))

(defmethod speechd.key ((driver speechd-braille-emu-driver) key)
(let ((key-string (format (if (numberp key) "%c" "%s") key)))
(let ((key-string (if (numberp key) (key-description (list key)) (format "%s" key))))
(speechd-braille--maybe-enqueue
driver key-string (speechd-braille--make-message driver key-string nil))))

Expand Down

0 comments on commit c5d893a

Please sign in to comment.