Phonegap/iOS — Disable popup menu for selected text - ios

I have used -webkit-user-select to limit selections to text, and now I'd like to prevent iOS from popping up the default menu that comes with text selections. In other words, I want users to be able to select text, but I don't want the copy/define menu to show up. Either that, or I'd like to be able to modify that menu with my own options. Is there a way to do this?

Have a look at this answer: iPhone/iPad context menu
You will probably need to either hack the PhoneGap source and recompile the framework or write a plugin to do what you need.

You can try disable native callout with this css property:
-webkit-touch-callout: none;

Related

Electron app - Custom components in native header

Is it possible in Electron to put custom components into the native application header?
For example, to achieve a design as such:
Currently my app just has the default one with just the title text
Is there a way to make it bigger and put content in there? Or do I have to somehow hide the native header and recreate the native buttons myself?
I suspect it's the latter, but in that case, how do I hide the native one and hook up ability to drag the window with it?
Or is this design entirely not possible in Electron?
The design you're looking for can be achieved, but only on macOS, by using the titleBarStyle property set to either hidden, hiddenInset, or even customButtonsOnHover, in the options passed to new BrowserWindow().
This is explained in more detail in Alternatives on macOS:
There's an alternative way to specify a chromeless window. Instead of
setting frame to false which disables both the titlebar and window
controls, you may want to have the title bar hidden and your content
extend to the full window size, yet still preserve the window controls
("traffic lights") for standard window actions.
There might still be a few issues, such as not being able to drag around the window from its title bar any more, but they are documented in the Frameless Window page; for instance, this specific problem can be solved by adding -webkit-app-region: drag; to the CSS relative to the region(s) you wish to make draggable.

How to disable VVDocumenter?

I'm using VVDocumenter to makeup my codes.But it will replace /// automatically.I want to disable this for just a little while.How to disable?Thanks in advance.
From the documentation:
If you want to use other text beside of /// to trigger the document
insertion, you can find a setting panel by clicking VVDocument in the
Window menu of Xcode. You can also find some other useful options
there, including setting using spaces instead of tab in the panel or
changing the format of generated documentation.

How to achieve drop down selection window in Ruby on Rails

I want to achieve a selection box in the drop down window.(I'm using something like
<%= f.select(:season, options_for_select(['spring/fall', 'winter', 'summer'], 'spring/fall'))%>
for the selection box for now)
In this window, I want to have many icons. The user can select one of these icons. And the selected icon will be saved in the database as one attribute of the object.
Can I do this without JavaScript?
Yes it is possible to use the background-image property to set icons in a dropdown, but apparently it only works in Firefox
See this question for discussions of how to do it with JS putting images with options in a dropdown list

How can i remove system menu items in blackberry?

I want to remove system menus; for example, in the Message app I want to remove the Send option from the menu.
There is a way to add menus using
ApplicationMenuItemRepository.getInstance()
.addMenuItem(ApplicationMenuItemRepository.MENUITEM_SYSTEM, this);
and also to removeMenuItem() in the same way, but I'm not able to remove menu items.
How can I use this, or any alternate way, to remove menu?

JQuery Mobile: how to disable default keyboard when clicking in text field?

I am currently using input text fields that spawn a chooser (listview with various entries) when they are clicked on. Testing this on the appMobi emulator works flawlessly; however, when testing it on an iPhone, the default keyboard appears when the text fields are touched and then quickly disappears to be replaced by the chooser.
Is there a way I can prevent the default keyboard from showing with JQM?
If they require user input, then you can't prevent the browsers' default implementation (at least in a x-browser friendly way). They is certainly no solution with JQM.
I suggest you style your own text box from a div or similar, using html/css. With js you can then wire up the chooser to this element.

Resources