mirror of
https://github.com/duncs/clusterssh.git
synced 2025-04-22 09:22:24 +00:00
Fixed "uninitialised errors in hash element" bug
This commit is contained in:
parent
6aca350f8b
commit
e825bc17ca
2 changed files with 3 additions and 2 deletions
1
Changes
1
Changes
|
@ -3,6 +3,7 @@
|
|||
- Add in key shortcut for username macro (ALT-u)
|
||||
- Add in key shortcut for local hostname macro (ALT-l)
|
||||
- Fixed a bug with 'show history' key shortcut
|
||||
- Fixed "uninitialised errors in hash element" bug [clusterssh support-requests:#38]
|
||||
|
||||
2013-04-16 Duncan Ferguson <duncan_ferguson@user.sf.net> - v4.02_01
|
||||
- Refactured file loading code
|
||||
|
|
|
@ -291,7 +291,7 @@ sub load_keyboard_map() {
|
|||
# try to associate $keyboard=X11->GetKeyboardMapping table with X11::Keysyms
|
||||
foreach my $i ( 0 .. $#keyboard ) {
|
||||
for my $modifier ( 0 .. 3 ) {
|
||||
if ( defined( $keycodetosym{ $keyboard[$i][$modifier] } ) ) {
|
||||
if ( defined( $keyboard[$i][$modifier] ) && defined( $keycodetosym{ $keyboard[$i][$modifier] } ) ) {
|
||||
|
||||
# keyboard layout contains the keycode at $modifier level
|
||||
if (defined(
|
||||
|
@ -328,7 +328,7 @@ sub load_keyboard_map() {
|
|||
else {
|
||||
|
||||
# we didn't get the code from X11::Keysyms
|
||||
if ( $keyboard[$i][$modifier] != 0 ) {
|
||||
if ( defined( $keyboard[$i][$modifier] ) && $keyboard[$i][$modifier] != 0 ) {
|
||||
|
||||
# ignore code=0
|
||||
logmsg( 2, "Unknown keycode ", $keyboard[$i][$modifier] );
|
||||
|
|
Loading…
Add table
Reference in a new issue