Comments (1)
hehe, this is the strangest feature request I ever received :)
There are various ways to implement it, the simple one is probably to patch the keyboard module like this:
diff --git a/epymc/plugins/input_keyb/keyb.py b/epymc/plugins/input_keyb/keyb.py
index 5290fb1..9996dd1 100644
--- a/epymc/plugins/input_keyb/keyb.py
+++ b/epymc/plugins/input_keyb/keyb.py
@@ -84,6 +84,7 @@ class KeyboardModule(EmcModule):
DBG('Init module')
self.grab_key_func = None
+ self.blocked = False
# set up default bindings
section = 'keyboard'
@@ -114,6 +115,12 @@ class KeyboardModule(EmcModule):
key = event.key.lower()
DBG('Key: %s (%s)' % (key, event.key))
+ if key == 'f12' and event.modifier_is_set("Shift"):
+ self.blocked = not self.blocked
+
+ if self.blocked:
+ return True
+
# if grabbed request call the grab function, else emit the signal
if self.grab_key_func and callable(self.grab_key_func):
self.grab_key_func(key)
If you apply this patch you can block/unblock the keyboard using Shift+F12
Let me know if this solution can work for you
from epymc.
Related Issues (16)
- Allow translation using an online service HOT 7
- Cannot start epymc with the last python-efl HOT 5
- Can not build epymc 1.1.0 HOT 2
- Desktop file is missing a semi colon HOT 1
- Using epymc over HDMI-CEC remote control HOT 2
- Media library not scanning HOT 7
- Correct epymc_xsession.desktop Icon HOT 8
- Accelerate the music scan HOT 11
- Build with python2 HOT 3
- SyntaxWarning for 'is' with literals HOT 1
- music python 3 support HOT 4
- Virtual Keyboard Layouts HOT 5
- Youtube plugin no longer functions HOT 4
- utente epymc.pot HOT 2
- brocken suggestion for freeroms.org. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epymc.