Merge remote-tracking branch 'blc56/blc_enter' into feature-enter_execute_match
This commit is contained in:
commit
b431718ed6
6
install
Executable file
6
install
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
umask 002
|
||||
|
||||
sudo rm -rf /usr/lib/linuxmint/mintMenu
|
||||
sudo cp -R usr /
|
||||
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
|
1
test
1
test
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
umask 002
|
||||
|
||||
sudo rm -rf /usr/lib/linuxmint/mintMenu
|
||||
sudo cp -R usr /
|
||||
|
@ -836,6 +836,10 @@ class pluginclass( object ):
|
||||
i.hide()
|
||||
else:
|
||||
shownList.append(i)
|
||||
#if this is the first matching item
|
||||
#focus it
|
||||
if(not showns):
|
||||
i.grab_focus()
|
||||
showns = True
|
||||
if (not showns and os.path.exists("/usr/bin/mintinstall")):
|
||||
if len(text) >= 3:
|
||||
@ -894,6 +898,7 @@ class pluginclass( object ):
|
||||
|
||||
# Forward all text to the search box
|
||||
def keyPress( self, widget, event ):
|
||||
|
||||
if event.string.strip() != "" or event.keyval == Gdk.KEY_BackSpace:
|
||||
self.searchEntry.grab_focus()
|
||||
gtk.gtk_editable_set_position.argtypes = [c_void_p, c_int]
|
||||
@ -901,6 +906,11 @@ class pluginclass( object ):
|
||||
self.searchEntry.event( event )
|
||||
return True
|
||||
|
||||
|
||||
if event.keyval == Gdk.KEY_space:
|
||||
self.searchEntry.event( event )
|
||||
return True
|
||||
|
||||
if event.keyval == Gdk.KEY_Down and self.searchEntry.is_focus():
|
||||
self.applicationsBox.get_children()[0].grab_focus()
|
||||
|
||||
@ -1313,8 +1323,15 @@ class pluginclass( object ):
|
||||
self.favoritesAdd( self.favoritesBuildLauncher( uri ) )
|
||||
|
||||
def Search( self, widget ):
|
||||
|
||||
text = self.searchEntry.get_text().strip()
|
||||
if text != "":
|
||||
for app_button in self.applicationsBox.get_children():
|
||||
if( isinstance(app_button, ApplicationLauncher) and app_button.filterText( text ) ):
|
||||
app_button.execute()
|
||||
self.mintMenuWin.hide()
|
||||
return
|
||||
|
||||
self.mintMenuWin.hide()
|
||||
fullstring = self.searchtool.replace( "%s", text )
|
||||
os.system(fullstring + " &")
|
||||
|
Loading…
Reference in New Issue
Block a user