Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keymappings and Presentation Remotes #110

Closed
roblem opened this issue Apr 27, 2015 · 3 comments
Closed

Keymappings and Presentation Remotes #110

roblem opened this issue Apr 27, 2015 · 3 comments

Comments

@roblem
Copy link

roblem commented Apr 27, 2015

My presentation remote (Kensington Wireless Presenter with Laser Pointer) works flawlessly going forward or backwards through slides, correctly advancing through slide and sub-slide sections.

The problem is with the laser button (which is also designed to start a presentation in powerpoint): hitting that sends F5 (key 71) which reloads the webpage and kicks the presentation back into notebook mode.

I have tried disabling keys in main.js (in ~/.ipython/nbextensions/livereveal) at around line 180, to bind key 71 to NULL:

71: null, // F5 disabled on kensington (added)

However, I believe the browser intercepts F5 and executes a page reload and overrides any keyboard settings in main.js.

@damianavila
Copy link
Owner

But F5 is 116... not 71... can you try disabling 116?
If it does not work, I guess this could be an option: http://stackoverflow.com/questions/2482059/disable-f5-and-browser-refresh-using-javascript

@roblem
Copy link
Author

roblem commented Apr 28, 2015

Thanks Damian,

Despite xev reporting key 71 as F5, disabling F5 using code 116 as you suggest works. So adding the following line to the keyboard section of main.js solves my problem and allows me to use the laser pointer without exiting the slideshow:

116: null, // F5 disabled

As an aside, the stop button on the remote sends b. Pressing this button or pressing b on the keyboard when in presentation mode continues to insert an ipython codecell when in livereveal, even with it disabled in main.js. Since I never use this feature of the remote anyway, it isn't a big deal.

Loving Rise by the way.

@damianavila
Copy link
Owner

Nice to know it is working...

As an aside, the stop button on the remote sends b. Pressing this button or pressing b on the keyboard when in presentation mode continues to insert an ipython codecell when in livereveal, even with it disabled in main.js. Since I never use this feature of the remote anyway, it isn't a big deal.

Can you open an issue for this? ^^^

Loving Rise by the way.

Thanks! Closing this one now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants