~ubuntu-branches/ubuntu/karmic/fltk1.1/karmic

« back to all changes in this revision

Viewing changes to src/fl_shortcut.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-05-22 13:57:06 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050522135706-mchag24yf42lu7bu
Tags: 1.1.6-5
* Revert previous change, which seems to have been ineffective for some
  reason, in favor of commenting out the problematic Makefile rule
  altogether.  (Closes: #310151.)
* debian/control: Go back to specifying the URL as part of the
  description rather than via a non-standard field that doesn't seem to
  have caught on.  (Closes: #310240.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// "$Id: fl_shortcut.cxx,v 1.4.2.9.2.13 2004/04/11 04:39:00 easysw Exp $"
 
2
// "$Id: fl_shortcut.cxx,v 1.4.2.9.2.14 2004/09/21 13:35:40 easysw Exp $"
3
3
//
4
4
// Shortcut support routines for the Fast Light Tool Kit (FLTK).
5
5
//
176
176
  if (*s == '#') {n |= FL_ALT; s++;}
177
177
  if (*s == '+') {n |= FL_SHIFT; s++;}
178
178
  if (*s == '^') {n |= FL_CTRL; s++;}
179
 
  if (s[1]) return n | (int)strtol(s,0,0); // allow 0xf00 to get any key
 
179
  if (*s && s[1]) return n | (int)strtol(s,0,0); // allow 0xf00 to get any key
180
180
  return n | *s;
181
181
}
182
182
 
201
201
}
202
202
 
203
203
//
204
 
// End of "$Id: fl_shortcut.cxx,v 1.4.2.9.2.13 2004/04/11 04:39:00 easysw Exp $".
 
204
// End of "$Id: fl_shortcut.cxx,v 1.4.2.9.2.14 2004/09/21 13:35:40 easysw Exp $".
205
205
//