Home Download Buy Blog Forum Support

ctrl+alt+p does not work

ctrl+alt+p does not work

Postby jbulcher on Wed Feb 27, 2013 5:57 pm

The key combination ctrl+alt+p stopped working forme; I checked the default key bindings, and I can see the line
Code: Select all
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_project" },


I'm running Sublime Text 2 on linux. Any ideas on how to fix or troubleshoot this?
jbulcher
 
Posts: 7
Joined: Wed Feb 27, 2013 5:53 pm

Re: ctrl+alt+p does not work

Postby jbrooksuk on Wed Feb 27, 2013 6:13 pm

What happens if you run:

Code: Select all
sublime.log_commands(True)


And then press the combination? On OSX I see prompt_select_workspace and the window appears.

Perhaps it's a conflicting plugin.
jbrooksuk
 
Posts: 772
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: ctrl+alt+p does not work

Postby jbulcher on Wed Feb 27, 2013 6:41 pm

I used ctrl+` to bring up the command line, and ran the code you gave me. When I press ctrl+alt+p, nothing happens, but if I do most anything else, I get output, e.g.:

Code: Select all
command: drag_select {"event": {"button": 1, "x": 632.5, "y": 441.5}}
command: drag_select {"event": {"button": 1, "x": 632.5, "y": 441.5}}
command: drag_select {"event": {"button": 1, "x": 604.5, "y": 343.5}}
command: drag_select {"event": {"button": 1, "x": 643.5, "y": 487.5}}
command: drag_select {"event": {"button": 1, "x": 561.5, "y": 249.5}}
command: show_overlay {"overlay": "command_palette"}


I don't know if it is helpful, but whenever I press ctrl+alt+p, the hard drive does a quick grind.
jbulcher
 
Posts: 7
Joined: Wed Feb 27, 2013 5:53 pm

Re: ctrl+alt+p does not work

Postby jps on Thu Feb 28, 2013 3:14 am

It sounds like another application is stealing the key press before Sublime Text gets to see it.

You can enter sublime.log_input(True) in the console to see what key events are being sent to Sublime Text.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: ctrl+alt+p does not work

Postby jbulcher on Thu Feb 28, 2013 5:17 pm

I've just come to that conclusion myself. I can't figure out what application it is, though. I've searched through both the keyboard shortcuts and the gconf-editor, and neither bind ctrl+alt+p to anything. The hard drive spinning is an indication that something is happening. Any ideas on how to figure out what that "something" is?
jbulcher
 
Posts: 7
Joined: Wed Feb 27, 2013 5:53 pm

Re: ctrl+alt+p does not work

Postby bronson on Thu Feb 28, 2013 8:13 pm

I bet it's not even Sublime related. Did you install something else that's eating the control-alt-P shortcut? Maybe a printscreen/screenshot tool?

EDIT: what desktop environment are you running? What extensions?
bronson
 
Posts: 38
Joined: Wed Nov 28, 2012 8:52 pm

Re: ctrl+alt+p does not work

Postby jbulcher on Fri Mar 01, 2013 6:41 pm

I'm running Ubuntu, with the gnome 3 desktop environment, and you just solved my problem! I installed the Pomodoro timer extension a few weeks back, and I just discovered that it grabs ctrl+alt+p to start and stop the timer. I thought it was odd that the timer occasionally ran "without" my intervention :D

Thanks for your help everyone!
jbulcher
 
Posts: 7
Joined: Wed Feb 27, 2013 5:53 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 27 guests