Changeset 10488
- Timestamp:
- 11/18/05 01:47:25 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/examples/key-pressed.lisp
r6579 r10488 1 1 ;;; key-pressed.lisp 2 2 ;;; 3 ;;; Copyright (C) 2003-200 4Peter Graves4 ;;; $Id: key-pressed.lisp,v 1. 7 2004-04-22 15:17:36piso Exp $3 ;;; Copyright (C) 2003-2005 Peter Graves 4 ;;; $Id: key-pressed.lisp,v 1.8 2005-11-18 01:47:25 piso Exp $ 5 5 ;;; 6 6 ;;; This program is free software; you can redistribute it and/or … … 159 159 ;;; Enable the hook. 160 160 (add-hook 'key-pressed-hook 'key-pressed) 161 (set f (variable-value 'enable-key-pressed-hook :global)t)161 (set-global-property "enableKeyPressedHook" t) 162 162 163 #| 164 165 NOTE: ENABLE-KEY-PRESSED-HOOK will be reset to its default value (NIL) when 166 preferences are reloaded (which happens automatically when you edit your 167 preferences file). To prevent this (and keep the key-pressed hook working 168 properly across preference file edits), add this line to ~/.j/prefs: 169 170 enableKeyPressedHook = true 171 172 |# 163 ;; NOTE: ENABLE-KEY-PRESSED-HOOK will be reset to its default value (NIL) when 164 ;; preferences are reloaded (which happens automatically when you edit your 165 ;; preferences file). To prevent this (and keep the key-pressed hook working 166 ;; properly across preference file edits), add this line to ~/.j/prefs: 167 ;; 168 ;; enableKeyPressedHook = true 169 ;;
Note: See TracChangeset
for help on using the changeset viewer.