]> git.zerfleddert.de Git - snom-frontend/commitdiff
volume handling
authorsimigern <simigern>
Sun, 21 May 2006 13:12:36 +0000 (13:12 +0000)
committersimigern <simigern>
Sun, 21 May 2006 13:12:36 +0000 (13:12 +0000)
snom.pl

diff --git a/snom.pl b/snom.pl
index d74e11bf6f20882f5ff62fee8c448cb1d7959552..6e4de92c3cd28023864bfed525468594e5979a1b 100755 (executable)
--- a/snom.pl
+++ b/snom.pl
@@ -1,5 +1,5 @@
 #!/bin/sh
-#$Id: snom.pl,v 1.8 2006-05-21 13:09:23 simigern Exp $
+#$Id: snom.pl,v 1.9 2006-05-21 13:12:36 simigern Exp $
 
 PATH=/opt/csw/bin:/opt/local/bin:/usr/bin:/bin exec perl -w -x "$0" "$@"
 
@@ -283,6 +283,10 @@ sub KBDInput
        if ($keyval == $Gtk2::Gdk::Keysyms{asterisk}) {snom_key('*'); return TRUE;}
        if ($keyval == $Gtk2::Gdk::Keysyms{KP_Multiply}) {snom_key('*'); return TRUE;}
        if ($keyval == $Gtk2::Gdk::Keysyms{numbersign}) {snom_key('#'); return TRUE;}
+       if ($keyval == $Gtk2::Gdk::Keysyms{KP_Add}) {snom_key('VOLUME_UP'); return TRUE;}
+       if ($keyval == $Gtk2::Gdk::Keysyms{plus}) {snom_key('VOLUME_UP'); return TRUE;}
+       if ($keyval == $Gtk2::Gdk::Keysyms{KP_Subtract}) {snom_key('VOLUME_DOWN'); return TRUE;}
+       if ($keyval == $Gtk2::Gdk::Keysyms{minus}) {snom_key('VOLUME_DOWN'); return TRUE;}
        if ($keyval == $Gtk2::Gdk::Keysyms{Return}) {snom_key("ENTER"); return TRUE;}
        if ($keyval == $Gtk2::Gdk::Keysyms{KP_Enter}) {snom_key("ENTER"); return TRUE;}
        if ($keyval == $Gtk2::Gdk::Keysyms{Escape}) {snom_key("CANCEL"); return TRUE;}
Impressum, Datenschutz